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
200
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
Amazon Q Developer Proで効率化するAPI開発入門
seike460
PRO
0
110
(再)ひとり技術広報からの脱却 / Re:Breaking away from one-man technical public relations
seike460
PRO
1
140
PHPで作るWebSocketサーバー ~リアクティブなアプリケーションを知るために~ / WebSocket Server in PHP - To know reactive applications
seike460
PRO
2
870
CQRS+ES の力を使って効果を感じる / Feel the effects of using the power of CQRS+ES
seike460
PRO
0
260
AWS reInvent 2024サービスアップデートデモ / AWS reInvent 2024 Service Update Demo
seike460
PRO
0
42
AWS Lambdaから始まった Serverlessの「熱」とキャリアパス / It started with AWS Lambda Serverless “fever” and career path
seike460
PRO
1
620
とにかく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
380
PHPを書く理由、PHPを書いていて良い理由 / Reasons to write PHP and why it is good to write PHP
seike460
PRO
5
650
Other Decks in Programming
See All in Programming
XStateを用いた堅牢なReact Components設計~複雑なClient Stateをシンプルに~ @React Tokyo ミートアップ #2
kfurusho
1
900
Flutter × Firebase Genkit で加速する生成 AI アプリ開発
coborinai
0
150
Honoをフロントエンドで使う 3つのやり方
yusukebe
7
3.2k
Amazon ECS とマイクロサービスから考えるシステム構成
hiyanger
2
550
負債になりにくいCSSをデザイナとつくるには?
fsubal
9
2.4k
動作確認やテストで漏れがちな観点3選
starfish719
6
1k
iOSエンジニアから始める visionOS アプリ開発
nao_randd
3
130
Pulsar2 を雰囲気で使ってみよう
anoken
0
240
Spring gRPC について / About Spring gRPC
mackey0225
0
220
How mixi2 Uses TiDB for SNS Scalability and Performance
kanmo
36
14k
責務と認知負荷を整える! 抽象レベルを意識した関心の分離
yahiru
0
170
SRE、開発、QAが協業して挑んだリリースプロセス改革@SRE Kaigi 2025
nealle
3
4.3k
Featured
See All Featured
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
7
630
Become a Pro
speakerdeck
PRO
26
5.1k
A designer walks into a library…
pauljervisheath
205
24k
Product Roadmaps are Hard
iamctodd
PRO
50
11k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
The Language of Interfaces
destraynor
156
24k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
30
2.2k
GraphQLとの向き合い方2022年版
quramy
44
13k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
133
33k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3k
The Invisible Side of Design
smashingmag
299
50k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
40
2k
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/
͝ਗ਼ௌ͍͖ͨͩ͋Γ͕ͱ͏͍͟͝·ͨ͠