Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
AWS Fargateで得する人損する人
Search
Masato Oshima
December 12, 2017
Technology
3
6k
AWS Fargateで得する人損する人
https://jawsug-container.connpass.com/event/71130/
での登壇内容
Masato Oshima
December 12, 2017
Tweet
Share
More Decks by Masato Oshima
See All by Masato Oshima
ECSからEKSへの移行への移行事例の紹介
mpon
6
3.5k
APIがある外部サービスはTerraformで管理できますよ
mpon
12
7k
Envoyを分かりやすく例えつつApp Meshの話をします
mpon
8
6.2k
kubernetes-meetup-4
mpon
2
2.4k
Unidirectional Data Flow in ReSwift
mpon
0
1.5k
DDD Practice in iOS
mpon
0
420
Swift compile time is so slow
mpon
3
5.4k
Fight Xcode Project with Golang
mpon
1
2.8k
iPad Multi Taking
mpon
0
73
Other Decks in Technology
See All in Technology
データ基盤におけるIaCの重要性とその運用
mtpooh
4
530
[IBM TechXchange Dojo]Watson Discoveryとwatsonx.aiでRAGを実現!座学①
siyuanzh09
0
110
AWS re:Invent 2024 re:Cap Taipei (for Developer): New Launches that facilitate Developer Workflow and Continuous Innovation
dwchiang
0
170
コロプラのオンボーディングを採用から語りたい
colopl
5
1.3k
カップ麺の待ち時間(3分)でわかるPartyRockアップデート
ryutakondo
0
140
【JAWS-UG大阪 reInvent reCap LT大会 サンバが始まったら強制終了】“1分”で初めてのソロ参戦reInventを数字で振り返りながら反省する
ttelltte
0
140
今年一年で頑張ること / What I will do my best this year
pauli
1
220
Evolving Architecture
rainerhahnekamp
3
260
AWS re:Invent 2024 recap in 20min / JAWSUG 千葉 2025.1.14
shimy
1
100
実践! ソフトウェアエンジニアリングの価値の計測 ── Effort、Output、Outcome、Impact
nomuson
0
2.1k
AWSマルチアカウント統制環境のすゝめ / 20250115 Mitsutoshi Matsuo
shift_evolve
0
120
メールヘッダーを見てみよう
hinono
0
110
Featured
See All Featured
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.6k
Rails Girls Zürich Keynote
gr2m
94
13k
Code Review Best Practice
trishagee
65
17k
The Cult of Friendly URLs
andyhume
78
6.1k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
330
21k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
A Tale of Four Properties
chriscoyier
157
23k
A designer walks into a library…
pauljervisheath
205
24k
Building Applications with DynamoDB
mza
93
6.2k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
How GitHub (no longer) Works
holman
312
140k
Transcript
AWS FargateͰ ಘ͢Δਓଛ͢Δਓ JAWS-UG ίϯςφࢧ෦ #10
SF*OWFOU ࢀՃ ͖ͯ͠·ͨ͠ େຬʂʂ &,4ͷൃදͷॠؒˠ
Masato Oshima github.com/mpon @_mpon iOS,Scala,Infra Engineer ίϯςφ·ΘΓͷ ͓༑ୡ͕ཉͯͬ͘͠ ͖ͯ·ͨ͠
։ൃࢧԉ(ͱ͍͏ͱ͜ΖͰಇ͍͍ͯ·͢ ։ൃࢧԉ( ɾɾɾ w ֤αʔϏεͷΠϯϑϥߏஙɺӡ༻ w ۀվળɺࣗಈԽਪਐ w "84্ʹΠϯϑϥߏங
w ࡐͷελσΟαϓϦ&/(-*4)ʹ͍ͭͯ w ϚΠΫϩαʔϏεԽͷഎܠ w &$Ϋϥελʔͷ߹ͷ w 'BSHBUFͱ&$Ϋϥελʔͷඅ༻ൺֱ w 'BSHBUFͷϝϦοτ
w 'BSHBUFʹͨ͠ͱ͖ͷ՝ w ʹئ͍Λ "HFOEB
ελσΟαϓϦ&/(-*4) ɾΦϯϥΠϯӳޠֶशαʔϏε ɾӳձԻը૾ɾಈըͳͲΛ৴ ɾΫΠζܗࣜͰֶशσʔλɺཤྺΛอଘ ɾJ04ɺ"OESPJEɺ8FCͰར༻Մೳ
ৗӳձίʔε ϦϦʔεॳ
ৗӳձίʔε ࠷ॳݸ͙Β͍ͷαʔϏε ͩͬͨ ϦϦʔεॳ
ৗӳձίʔε αʔϏε͕ॱௐʹ৳ͼͯདྷͯ ৽͍͠ίʔεΛ૿͢͜ͱʹ %#͕ωοΫʹͳͬͯ͘Δ ϦϦʔεॳ
ϚΠΫϩαʔϏεԽ
https://www.slideshare.net/danveloper/microservices-the-right-way ৺ʹਂ͍ইΛෛͬͨํͷ࡞
ελσΟαϓϦ&/(-*4)ͷαʔϏεؒͷίϯϙʔωϯτਤ ཁૉ͕ଟ͍ͷͰུ֓Ͱઆ໌͠·͢
ৗӳձίʔε 50&*$ίʔε ςΩετൢച ϦϦʔε͔Β
ৗӳձίʔε 50&*$ίʔε ςΩετൢച ͍ͬͺ͍૿͑ͨ ෦௨৴H31$Ͱߦ͏ %#Λׂ ϦϦʔε͔Β
ϦϦʔεॳ ࠓ Ϋϥελʔ ίϯςφΠϯελϯε े ഒ ΠϯελϯελΠϓ NNFEJVN
NMBSHF αʔϏε ഒ λεΫ ഒ QSPEVDUJPOڥͷਪҠ
ίϯςφӡ༻͍͍ʂʂ &$4͍͍ ͍͍Αɺ͍͍Μ͚ͩͲ ͬͱ͓͍͖͍҆ͯͨ͘͠
&$4Λ&$Ͱ࡞Δ߹ w σϓϩΠͷͨΊʹ༨ͳϦιʔε͕͍Δ w εέʔϧΠϯ͠ʹ͍͘
.BYJNVNQFSDFOUΛʹ͍ͨ͠ w Ұ࣌తʹEFTJSFE$PVOUͷഒͷۭ͖༰ྔ͕͍ Δ w EFTJSFE$PVOU͕ͩͱݸͷUBTL͕Ұ࣌త ʹ্ཱ͕ͪΔ w ಈతϙʔτϚοϐϯάͰ͖ͯͳ͍ͱ͞Βʹ൵ ࢂͳ͜ͱʹ
i-0001 task task i-0001 task task task task ৽͍͠UBTL͕ ऩ·Γ͖Βͳ͍ ͷͰ༨Πϯε λϯε͕ඞཁ i-0002
.BYJNVNNJOJNVNͰઅ Ͱ͖Δ͚Ͳɾɾ w গͣͭ͠ೖΕସ͑Λ͢ΔͷͰશ෦ೖΕସΘΔ· Ͱʹ͕͔͔࣌ؒΔ i-0001 task task i-0001 task
task i-0001 task task i-0001 task i-0001 task
εέʔϧΠϯ͠ʹ͍͘ w BVUPTDBMJOHͰεέʔϧΠϯ͢Δͱ͖ʹ ESBJOJOHରΛબͳ͍ʢݸผʹ QSPUFDU͢Ε͍͚Δʣ %SBJOJOHΨνϟ
εέʔϧΠϯ͠ʹ͍͘ w σϓϩΠͷ͚࣌ͩ૿ͯͦ͜͠ΛҰ࣌ తͳॴͱͯ͠σϓϩΠʹͬͯ͘ΕΔ Θ͚Ͱͳ͍ʢຬวͳ͘λεΫ͕ࢄΒ ΔͷͰESBJOJOHͰ͖ͳ͍ʣ i-0001 task task task
task ཧ ݱ࣮ i-0002 i-0001 task task task task i-0002 Ͳͬͪফͤͳ͍
ɾΫϥελʔ࡞Βͳ͍͍ͯ͘ ɾඵ՝ۚ
අ༻Λൺֱ ͯ͠ΈΑ͏
ϦϦʔεॳ ࠓ Ϋϥελʔ ίϯςφΠϯελϯε े ഒ ΠϯελϯελΠϓ NNFEJVN
NMBSHF αʔϏε ഒ λεΫ ഒ ·ͣ&$ͰΫϥελʔཱͯͨ߹ͷྉۚΛܭࢉ
NMBSHFI NPOUI NPOUI Ծʹͱͯ͠ܭࢉ
W$16 NFNPSZ શମʹΊΔ UBTLͷׂ߹ "1*H31$ (# ίϯςϯπ ೖߘ"1*
(# 8FC৴ OHJOY (# ίϯςϯπ ৴OHJOY (# QSPEVDUJPOڥͷUBTL
QSPEVDUJPOڥͷUBTL W$16 NFNPSZ શମʹΊΔ UBTLͷׂ߹ "1*H31$ (# ίϯςϯπ
ೖߘ"1* (# 8FC৴ OHJOY (# ίϯςϯπ ৴OHJOY (# ·ͣ͜͜Λܭࢉͯ͠ΈΔ
NMBSHFI NPOUI NPOUI W$16ɺ(#
I NPOUI ࣌ؒW$16͋ͨΓ ࣌ؒ(#ϝϞϦ͋ͨΓ (# ϲ݄ͷI EBZTΛ͔͚Δ
NMBSHFI NPOUI NPOUI W$16ɺ(#
I NPOUI UBTL NPOUI ݱঢ়͋ͨΓUBTL͕ฏۉݸ ೖ͍ͬͯΔͷͰɺ ͷ߹ UBTL UBTL ͱԾఆͯ͠ܭࢉ
W$16 NFNPSZ શମʹΊΔ UBTLͷׂ߹ ߹ܭNPOUI "1*H31$ (#
ίϯςϯπ ೖߘ"1* (# 8FC৴ OHJOY (# ίϯςϯπ ৴OHJOY (# QSPEVDUJPOڥͷUBTL
NMBSHFI NPOUI NPOUI W$16ɺ(#
I NPOUI UBTL૯߹ܭ ฏۉ NPOUI
NMBSHFI NPOUI NPOUI W$16ɺ(#
I NPOUI UBTL૯߹ܭ ฏۉ NPOUI 'BSHBUFͷํׂ͕ߴ ͚ͩͲɺਓ݅අߟ͑ͨΒɾɾʁ
ͦΜͳʹѱ͘ͳ͍☺
NBYJNVNQFSDFOUΛʹؾܰʹͰ͖Δ w ඵ՝ۚͳͷͰҰ࣌తʹ૿͑Δ΄΅ແ ࢹͰ͖Δ w αʔϏεҰͭͣͭ͡Όͳ͘શαʔϏε ฒྻͰҰʹσϓϩΠͰ͖Δ serviceA task:1 task:1
task:2 task:2 serviceB task:1 task:2 ۭ͖༰ྔΛؾʹ ͠ͳͯ͘ྑ͍ ͪ߹Θͤ͠ͳ ͯ͘ྑ͍
ؾܰʹ૿ͤΔ w JOTV⒏DJFOUDQVʹ·͞Εͳ͍ w αʔϏεՃ࣌BVUPTDMBJOHؾʹ͠ͳ ͍ BVUPTDBMJOHͷ ཧ͠ͳͯ͘0,
ؾܰʹݮΒͤΔ w %SBJOJOHରΛߟ͑ͳͯ͘ྑ͍ w ؾܰʹεέʔϧΠϯɾΞτ͕Մೳʹͳ Δ w FYதUBTLΛݮΒ͢ͳͲ taskA taskA
taskA taskA taskB taskB UBTL"Λ taskA taskA taskB taskB ר͖ࠐΜͰผͷ 5BTLΛLJMM͠ͳ ͍
՝
'BSHBUFʹͨ͠߹ͷ՝ w 5BTLͭʹରͯ͠&/*͕ͭBUUBDI͞ΕΔͷͰ&/*ͷ੍ ݶΛؾʹ͠ͳ͍ͱ͍͚ͳ͍71$σϑΥϧτͰ w TVCOFUͷ*1͕ރׇ͢ΔࣾࣄͰ੍ݶ͞Ε͍ͯ ͨΓ͢Δͱݫ͍͠ w %BUBEPHBHFOUΛͲ͜ʹ͍ΕΔ͔TJEFDBSύλʔ ϯͪΐͬͱ໘
w 4QPU'MFFUͱൺֱͯ͠͠·͏ͱྉۚతʹݫ͍͠ ຊ൪POMZͰ͔͑͠ͳ͍ w ґવͱͯ͠4FSWJDF%JTDPWFSZʹ&-#͕ඞཁ&,4 ʹ͍͖͍ͨ
ʹئ͍Λ ɾUBTL͕উखʹࢭΊΒΕͯ͠·͏͜ͱ͕͋Δ͕ೖࡳՄೳ ʹͳͬͨΒ·ͨىಈͯ͠0''ఔͷྉۚͰར༻Ͱ͖ Δ'BSHBUFPO4QPU'MFFU ɾ$MVTUFSΛҙࣝ͠ͳͯ͘Α͘ͳͬͨͷͰຊ&-# ࡞Γͨ͘ͳ͍ %PDLFSpMF͚ͩΛॻ͚͍͍ੈք
࠙ձͰ͜ͷลΓͷղܾࡦͳͲ Λڭ͑ͯΒ͍͍ͨͰ͢ ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠