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
5.9k
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
6.9k
Envoyを分かりやすく例えつつApp Meshの話をします
mpon
7
6.1k
kubernetes-meetup-4
mpon
2
2.4k
Unidirectional Data Flow in ReSwift
mpon
0
1.5k
DDD Practice in iOS
mpon
0
410
Swift compile time is so slow
mpon
3
5.4k
Fight Xcode Project with Golang
mpon
1
2.7k
iPad Multi Taking
mpon
0
70
Other Decks in Technology
See All in Technology
Taming you application's environments
salaboy
0
180
Amazon CloudWatch Network Monitor のススメ
yuki_ink
1
200
OCI Network Firewall 概要
oracle4engineer
PRO
0
4.1k
フルカイテン株式会社 採用資料
fullkaiten
0
40k
ISUCONに強くなるかもしれない日々の過ごしかた/Findy ISUCON 2024-11-14
fujiwara3
8
860
スクラム成熟度セルフチェックツールを作って得た学びとその活用法
coincheck_recruit
1
140
【Pycon mini 東海 2024】Google Colaboratoryで試すVLM
kazuhitotakahashi
2
490
rootlessコンテナのすゝめ - 研究室サーバーでもできる安全なコンテナ管理
kitsuya0828
3
380
10XにおけるData Contractの導入について: Data Contract事例共有会
10xinc
5
560
個人でもIAM Identity Centerを使おう!(アクセス管理編)
ryder472
3
180
The Role of Developer Relations in AI Product Success.
giftojabu1
0
120
透過型SMTPプロキシによる送信メールの可観測性向上: Update Edition / Improved observability of outgoing emails with transparent smtp proxy: Update edition
linyows
2
210
Featured
See All Featured
Product Roadmaps are Hard
iamctodd
PRO
49
11k
4 Signs Your Business is Dying
shpigford
180
21k
Building Better People: How to give real-time feedback that sticks.
wjessup
364
19k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.8k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
We Have a Design System, Now What?
morganepeng
50
7.2k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
720
Rails Girls Zürich Keynote
gr2m
94
13k
RailsConf 2023
tenderlove
29
900
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5k
Agile that works and the tools we love
rasmusluckow
327
21k
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͚ͩΛॻ͚͍͍ੈք
࠙ձͰ͜ͷลΓͷղܾࡦͳͲ Λڭ͑ͯΒ͍͍ͨͰ͢ ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠