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 Step Functions で検討する crontabless architectu...
Search
Yohei Kawahara
August 25, 2017
1
740
AWS Step Functions で検討する crontabless architecture/20170824_serverless_meetup_fukuoka#1
Serverless Meetup Fukuoka #1 でお話した資料でごわす。
Yohei Kawahara
August 25, 2017
Tweet
Share
More Decks by Yohei Kawahara
See All by Yohei Kawahara
20191002_CircleCIMeetupFukuoka#2
inokappa
1
810
kix_009_20190429
inokappa
0
810
2019-04-18 CircleCI Meetup Fukuoka #1
inokappa
2
8k
開発で使える AWS の API 操作を模倣する (OSS) ツールを探してみた/JAWS-UG Kagoshima Vol.8
inokappa
1
1.2k
隙間時間を使って exercism.io を始め隊 | リモートで勉強会 #2
inokappa
0
400
Congratulations fukuokarb#100
inokappa
0
3.9k
moto を 'もっと' 使おう/PyFukuoka#4
inokappa
0
4.4k
github-enterprise-user-kai-desuyone
inokappa
0
100
Elixir and AWS Tutorial
inokappa
0
540
Featured
See All Featured
Rails Girls Zürich Keynote
gr2m
94
13k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
42
9.2k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
Done Done
chrislema
181
16k
GitHub's CSS Performance
jonrohan
1030
460k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Speed Design
sergeychernyshev
25
620
Music & Morning Musume
bryan
46
6.2k
The World Runs on Bad Software
bkeepers
PRO
65
11k
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
Six Lessons from altMBA
skipperchong
27
3.5k
Transcript
"844UFQ'VODUJPOTͰݕ౼͢Δ DSPOUBCMFTTBSDIJUFDUVSF 2017.08.25 4FSWFSMFTT.FFUVQ'VLVPLB ͔ͬͺ !JOPLBSB
ҙ ‘ ຊࢿྉʹTFSWFSMFTTNFFUVQͳͷʹ &$αʔόʔͱݴͬͨ༻ޠ͕ਵॴʹݱΕ·͢ ͷͰ෦Λ໌Δͯ͘͠ޚཡ͍ͩ͘͞ ‘ ਵॴͰ৭ʑͳใΛંͬͯ͠·͍ͬͯΔͷͰɺ ৄࡉʹ͍ͭͯ8FCαΠτΛޚ֬ೝԼ͍͞
͍ͨ͜͠ͱΛࡾߦͰ ‘ DSPOͰಈ͘όονॲཧΛ ‘ 4UFQ'VODUJPOTʹஔ͖͑ͯ ‘ DSPOUBCMFTTΛໝ͓ͨ͠Ͱ͢
Ϟνϕʔγϣϯ ͜ΜͳDSPOUBC͕ఆٛ͞Εͨ&$͕͋ͬͨͱ͞ */3 * * * * batch /path/to/batch1 >
/dev/null 2>&1 30 1 * * * batch /path/to/batch2 > ./log/batch2.log 30 3 * * * batch /path/to/batch3 > ./log/batch3.log
࣌αʔόʔϨεɺόοναʔόʔͰͷՔಇ ࢭΊͯ-BNCEBʹҠߦ͢Ε͍͍ΜͫΌͳ͍͔ͳ
ͱ͜Ζ͕ ͜Ε໘ ‘ όον͕-BNCEBͰͦͷ··ಈ͔ͳ͍ ‘ -BNCEBͰαϙʔτ͞Ε͍ͯͳ͍ݴޠͰ࣮ ‘ Ҡ২ʹͦΕͳΓͷ͕͔͔࣌ؒΔ
Ͳ͏͔ͬ͢ͳ ‘ όονΛىಈ͍͚ͨ࣌ͩ͠&$Λىಈͯ͠ʜ ‘ &$͕ىಈͨ͠ޙʹόονΛ࣮ߦͯ͠ʜ ‘ όον͕ऴྃͨ͠Β&$Λఀࢭ -BNCEBͱ&$ͷϋΠϒϦουͰΠέͦ͏͍
ͱ͜Ζ͕ ‘ όονॲཧऴྃલʹ&$͕ఀࢭ͠ͳ͍ʁ ‘ όονʹґଘ͕ؔ͋ΔΜ͚ͩͲʜ ‘ ෳόονॲཧ͕ฒߦͰΒ͍ͤͨΜ͚ͩͲʜ ‘ ॲཧϑϩʔΛՄࢹԽ͍ͨ͠Μ͚ͩͲʜ
‘ ॲཧϑϩʔΛίʔυԽ͍ͨ͠Μ͚ͩͲʜ ͍Ζ͍ΖؾʹͳΔʜ
ͦ͜Ͱ4UFQ'VODUJPOT ‘ SF*OWFOUͰൃද ‘ -BNCEBͷෳΞϓϦέʔγϣϯΛͭͷ ϫʔΫϑϩʔͱͯ͠ఆٛɺ࣮ߦ ‘ ฒྻॲཧɺ࿈ଓॲཧɺذΛ+40/ϕʔεͷ %4-Ͱهड़
‘ ॲཧͷྲྀΕ࣮ߦ݁ՌΛΠΠײ͡ʹՄࢹԽ
ͦ͜Ͱ4UFQ'VODUJPOT ϫʔΫϑϩʔ $IPJDFεςʔτ ύϥϨϧ +PCTUBUVTQPMMFS ଞʹ͋ΔΑΧελϚΠζग़དྷΔΑ
ͦ͜Ͱ4UFQ'VODUJPOT ࣮ߦཧ
ͦ͜Ͱ4UFQ'VODUJPOT ༻ޠ ‘ 4UBUF.BDIJOFϫʔΫϑϩʔ ‘ 4UBUFछྨͷ4UBUFʢ5BTL $IPJDF 1BSBMMFMʜʣ
‘ 5BTL-BNCEBͷΞϓϦέʔγϣϯ ‘ "NB[PO4UBUF-BOHVBHF+40/ϕʔε Ͱ4UBUF.BDIJOFΛهड़
ͦ͜Ͱ4UFQ'VODUJPOT "4- { "Comment": “HelloWorld Sample", "StartAt": "HelloWorld", "States":
{ "HelloWorld": { "Type": "Pass", "Result": "Hello World!", "End": true } } }
ͰɺDSPOͷόονॲཧͲ͏͢Μͷʁ ‘ &$ΦϯϓϨαʔόʔ্ͷॲཧλεΫͱ͠ ͯར༻Մೳʢ"DUJWJUZ5BTLʣ ‘ "DUJWJUZ5BTLΛ࣮ߦ͢Δ8PSLFS"84 $-*"844%,Ͱཁ࣮ʢࠓճ(PMBOH Ͱʣ ‘ 8PSLFSఆظతʹ4UFQ'VODUJPOTΛϙʔ
Ϧϯάͯ͠ݺͼग़͠Λͭ
"DUJWJUZ5BTL Λར༻ͯ͠όονΛ࣮ߦ͢ΕΑ͛͞
ͱ͍͏͜ͱͰɺ͜Μͳײ͡ʹͳΓ·ͨ͠
None
"844UFQ'VODUJPOTͷΠΠͱ͜ ‘ $MPVE8BUDI&WFOUTͱͷΈ߹ΘͤͰϦο νͳ4FSWFSMFTTDSPOͱͳΔ ‘ -BNCEBΛύʔπͱͯࣗ͠༝ʹϫʔΫϑϩʔΛ σβΠϯՄೳ ‘ &$͢ΒλεΫΛॲཧ͢ΔҝͷϦιʔεͱͳΔ ‘
ॲཧϑϩʔ݁Ռ͕͍͍ײ͡ͰՄࢹԽ͞Ε͑Δ
"844UFQ'VODUJPOTͷؾʹͳΔͱ͜Ζ ‘ λεΫؒͷೖग़ྗ+40/ͰΓͱΓ͞ΕΔ ‘ "DUJWJUZ5BTL8PSLFSࣗ࡞͢Δඞཁ͋Γ ‘ 4UFQ'VODUJPOTͷར༻ࣗମʹֻ͓͕͔ۚΔ
ࢀߟ ‘ IUUQTXXXTMJEFTIBSFOFU"NB[PO8FC4FSWJDFT+BQBO CMBDLCFMUTUFQGVODUJPOT ‘ IUUQTXXXTMJEFTIBSFOFUTLJLVDIJBXTTUFQGVODUJPOT ‘ IUUQEFWDMBTTNFUIPEKQSFGFSFODFDBUBXTTUFQ GVODUJPOT ‘
IUUQTTQFBLFSEFDLDPNEBJLJNPSJBXTTUFQ GVODUJPOTGBMTFJSPIB ‘ IUUQJOPLBSBIBUFCMPKQFOUSZ