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 X-Rayを利用したサーバーレスのパフォーマンス分析 / Serverless p...
Search
shiro seike
PRO
September 05, 2024
Programming
2
190
AWS X-Rayを利用したサーバーレスのパフォーマンス分析 / Serverless performance analysis using AWS X-Ray
shiro seike
PRO
September 05, 2024
Tweet
Share
More Decks by shiro seike
See All by shiro seike
PHPで作るWebSocketサーバー ~リアクティブなアプリケーションを知るために~ / WebSocket Server in PHP - To know reactive applications
seike460
PRO
2
720
CQRS+ES の力を使って効果を感じる / Feel the effects of using the power of CQRS+ES
seike460
PRO
0
230
AWS reInvent 2024サービスアップデートデモ / AWS reInvent 2024 Service Update Demo
seike460
PRO
0
28
AWS Lambdaから始まった Serverlessの「熱」とキャリアパス / It started with AWS Lambda Serverless “fever” and career path
seike460
PRO
1
580
とにかくAWS GameDay!AWSは世界の共通言語! / Anyway, AWS GameDay! AWS is the world's lingua franca!
seike460
PRO
1
1.2k
実践サーバーレスパフォーマンスチューニング ~その実力に迫る~ / Practical Serverless Performance Tuning ~A Close Look at its Power~
seike460
PRO
2
370
PHPを書く理由、PHPを書いていて良い理由 / Reasons to write PHP and why it is good to write PHP
seike460
PRO
5
630
AWS CDKを用いたセキュアなCI/CDパイプラインの構築 / Build a secure CI/CD pipeline using AWS CDK
seike460
PRO
3
770
いまあるチームにフィットさせる Serverless そして Platform Engineeringへの挑戦 / Serverless Fits the Team You Have and Platform Engineering
seike460
PRO
2
2.1k
Other Decks in Programming
See All in Programming
20241217 競争力強化とビジネス価値創出への挑戦:モノタロウのシステムモダナイズ、開発組織の進化と今後の展望
monotaro
PRO
0
230
Package Traits
ikesyo
1
130
Go の GC の不得意な部分を克服したい
taiyow
3
980
Stackless и stackful? Корутины и асинхронность в Go
lamodatech
0
1.2k
アクターシステムに頼らずEvent Sourcingする方法について
j5ik2o
6
670
선언형 UI에서의 상태관리
l2hyunwoo
0
250
責務を分離するための例外設計 - PHPカンファレンス 2024
kajitack
9
2.3k
KubeCon NA 2024の全DB関連セッションを紹介
nnaka2992
0
110
20年もののレガシープロダクトに 0からPHPStanを入れるまで / phpcon2024
hirobe1999
0
970
rails newと同時に型を書く
aki19035vc
5
610
KubeCon + CloudNativeCon NA 2024 Overviewat Kubernetes Meetup Tokyo #68 / amsy810_k8sjp68
masayaaoyama
0
290
Zoneless Testing
rainerhahnekamp
0
150
Featured
See All Featured
The Illustrated Children's Guide to Kubernetes
chrisshort
48
49k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
171
50k
Done Done
chrislema
182
16k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.7k
BBQ
matthewcrist
85
9.4k
How to Ace a Technical Interview
jacobian
276
23k
How to Think Like a Performance Engineer
csswizardry
22
1.3k
Facilitating Awesome Meetings
lara
50
6.2k
How GitHub (no longer) Works
holman
312
140k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
127
18k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
Transcript
©Fusic Co., Ltd. 1 AWS X-RayΛར༻ͨ͠ αʔόʔϨεͷύϑΥʔϚϯεੳ 2024.09.05 @seike460 Fusic
x ϑΥʔδϏδϣϯ x Ϋϥεϝιου Vol.2
©Fusic Co., Ltd. 2 ਗ਼Ո ࢙ @seike460 AWS Community Builder
Serverless BacklogWorld2024 ࣮ߦҕһ 12/14 at ԣ ίϛϡχςΟ Fukuoka.php Fukuoka.go JAWS-UG Fukuoka Serverless Meetup Fukuoka Cloudflare Meetup Fukuoka JP_Stripes Fukuoka ࣗݾհ ͡Ίʹ גࣜձࣾFusic ϓϦϯγύϧΤϯδχΞ/ΤόϯδΣϦετ
©Fusic Co., Ltd. 3 CONTENTS ࣍ 1. AWS X-Rayͱ 2.
ద༻ํ๏ 3. Demo 4. AWS X-RayͷϝϦοτͱڥք 5. ·ͱΊ
©Fusic Co., Ltd. 4 AWS X-Rayͱ 1
©Fusic Co., Ltd. 5 AWS X-Ray ΞϓϦέʔγϣϯͷύϑΥʔϚϯεΛ͠ՄࢹԽ͢ΔͨΊͷαʔϏε τϨʔεΛͬͯࢄγεςϜͷϦΫΤετͷྲྀΕΛࢹ֮Խ ಛʹαʔόʔϨεΞʔΩςΫνϟͰ༗༻
©Fusic Co., Ltd. 6 AWS X-Ray ͷΈ - τϨʔγϯάσʔλͷऩू -
࠷ॳʹτϨʔε IDΛੜͯ͠ɺ֤छαʔϏεʹ࿈ܞ - τϨʔεηάϝϯτΛར༻ͯ͠ՄࢹԽ͢Δ - LambdaɺAPI GatewayɺDynamoDB ͳͲͷαʔϏε - ޙड़ͷҙͷαϒηάϝϯτͷ֓೦ಋೖՄೳ - τϨʔεͷྲྀΕ - ϦΫΤετ͕ͲͷαʔϏεΛ௨ա͢Δ͔ΛՄࢹԽ Ͳ͜Ͱ͍͔ɺΤϥʔ͕ൃੜ͍ͯ͠ͳ͍͔֬ೝՄೳ
©Fusic Co., Ltd. 7 ద༻ํ๏ 2
©Fusic Co., Ltd. 8 AWS X-Rayͷ༗ޮԽ - AWS SAMͳͲʹͯ༗ޮԽ -
Globalsʹهड़͢Δ͜ͱՄ - AWS X-Rayͷ ॻࠐݖݶΕͣʹ
©Fusic Co., Ltd. 9 Python ϓϩδΣΫτͰͷ X-Ray ಋೖ
©Fusic Co., Ltd. 10 Python ϓϩδΣΫτͰͷ X-Ray ಋೖ
©Fusic Co., Ltd. 11 SDKؔ܊ patch_all() … Xrayͷ༗ޮԽ SQSϦιʔε୯ҐͰͷTrace xray_recorder()
… ؔ୯Ґ ઃఆ͍ͯ͠ΔؔͷTrace in_subsegment() … ࢦఆ୯Ґ ࢦఆൣғͷTrace
©Fusic Co., Ltd. 12 X-Ray ͷ࣮ߦྫ
©Fusic Co., Ltd. 13 AWS X-Ray ηάϝϯτͷλΠϜϥΠϯ
©Fusic Co., Ltd. 14
©Fusic Co., Ltd. 15 ϦΫΤετʹؔΘΔαʔϏεͷՄࢹԽ
©Fusic Co., Ltd. 16 Τϥʔ࣌ͷঢ়گͷτϨʔγϯάϩά֬ೝ
©Fusic Co., Ltd. 17 Demo 3
©Fusic Co., Ltd. 18 AWS X-RayͷϝϦοτͱڥք 4
©Fusic Co., Ltd. 19 AWS X-Ray Λ༻͢ΔϝϦοτͱରԠՄೳൣғ - ϘτϧωοΫͷಛఆ -
ΤϥʔύϑΥʔϚϯεͷ τϥϒϧγϡʔςΟϯά - StepFunctionsͳͲͩͱ ؤுͬͯ͏ʂͰ͓ख্͛ - ࢄγεςϜʹ͓͚Δ ϦΫΤετͷτϥοΩϯά
©Fusic Co., Ltd. 20 ίʔυϨϕϧʹͳΔͱಛఆ͍͠ ʮͲͷίʔυͰʯΛಛఆ͢Δʹ AWS X-RayͰͨΓΛ͚ͭͨޙʹ ؔϓϩϑΝΠϦϯά͠ͳ͍ͱ͍͠ ▪ؔϓϩϑΝΠϦϯά
Python CProfiler -> SnakeViz PHP Xdebug -> Xhprof ͜ΕΛLambdaͰ࣮͢Δඞཁ͋Γ
©Fusic Co., Ltd. 21 ίʔυϨϕϧʹͳΔͱಛఆ͍͠
©Fusic Co., Ltd. 22 JAWS FESTAʹ࣮ͯྗʹഭΒͳ͚ΕͳΒͳ͍ JAWS FESTA 2024ʹࢀՃ͞ΕΔํʂͥͻฉ͖ʹདྷ͍ͯͩ͘͞ʂ
©Fusic Co., Ltd. 23 ·ͱΊ 5
©Fusic Co., Ltd. 24 ·ͱΊ AWS X-RayɺαʔόʔϨεΞʔΩςΫνϟͷ֤ίϯϙʔωϯτؒͰͷϦΫΤετͷྲྀΕΛՄࢹԽग़དྷΔ Point 01 Step
FunctionsͳͲͷࢄγεςϜͰ͕ൃੜ͍ͯ͠Δ͔ΛτϨʔε͠ɺΤϥʔΛޮతʹಛఆग़དྷΔ Point 02 SDKΛར༻͢Δ͜ͱͰؔ୯Ґαϒηάϝϯτ୯ҐͰͷৄࡉͳτϨʔγϯάΛ࣮ݱग़དྷΔ Point 03 ؔϓϩϑΝΠϦϯάπʔϧͰͷಛఆͰΑΓਂງΓՄೳɺJAWS FESTA 2024ͷൃදฉ͖ʹདྷ͍ͯͩ͘͞ʂ Point 04
©Fusic Co., Ltd. 25 Thank You We are Hiring! https://recruit.fusic.co.jp/
͝ਗ਼ௌ͍͖ͨͩ͋Γ͕ͱ͏͍͟͝·ͨ͠