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
26
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
Cloudflare Workers x AWS Lambdaの組み合わせユースケース / Cloudflare Workers x AWS Lambda Combination Use Case
seike460
PRO
2
400
技術力を高め合う “開けた”企業間コミュニティの形成 / Formation of an "open" inter-company community to enhance technological capabilities
seike460
PRO
1
77
有効な使い方を正しく理解して実装する PHP8.3の最新機能の「ウラ側」 / Understanding and Implementing Effective Usage Correctly The "Uraside" of PHP 8.3's Latest Features
seike460
PRO
1
120
有効な使い方を正しく理解して実装する PHP8.3の最新機能 / Proper understanding and implementation of effective usage Latest features in PHP 8.3
seike460
PRO
2
320
事例から見るサーバーレスの効果 / Serverless Effectiveness as Seen in Case Studies
seike460
PRO
1
110
Secure Serverless Architecture
seike460
PRO
2
610
地方こそサーバーレス、その意義に迫るサーバーレスPHP / Serverless PHP: The Rural Areas, and Why Serverless PHP Matters
seike460
PRO
2
210
サーバーレスらしさを意識した AWSにおける開発手法 / Development methodologies in AWS that are serverless-like
seike460
PRO
1
87
OpenAPIを中心に考えるAPI開発入門 / Introduction to API Development with a Focus on OpenAPI
seike460
PRO
3
540
Other Decks in Programming
See All in Programming
ドメイン駆動設計を実践するために必要なもの
bikisuke
3
330
Lessons by WebAssembly app in production on CDN Edge Computing Service
tetsuharuohzeki
0
170
GraphQL あるいは React における自律的なデータ取得について
quramy
11
2.8k
GoのIteratorに詳しくなってしまう
inatonix
1
200
Some more adventure of Happy Eyeballs
coe401_
2
180
大公開!iOS開発の悩みトップ5 〜iOSDC Japan 2024〜
ryunakayama
0
190
メモリ最適化を究める!iOSアプリ開発における5つの重要なポイント
yhirakawa333
0
410
全部見せます! クラシルリワードのSwiftTesting移行プロジェクト
uetyo
0
190
A New Era of Testing
mannodermaus
2
230
unique パッケージから学ぶ interning と weak reference @ Asakusa.go#3
karamaru
2
740
What we keep in mind when migrating from Serverless Framework to AWS CDK and AWS SAM
kasacchiful
1
140
Method Swizzlingを行うライブラリにおけるマルチモジュール設計
yoshikma
0
110
Featured
See All Featured
Side Projects
sachag
451
42k
Faster Mobile Websites
deanohume
304
30k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
190
16k
The World Runs on Bad Software
bkeepers
PRO
64
11k
Documentation Writing (for coders)
carmenintech
65
4.3k
The Mythical Team-Month
searls
218
43k
Producing Creativity
orderedlist
PRO
340
39k
How GitHub Uses GitHub to Build GitHub
holman
472
290k
Atom: Resistance is Futile
akmur
261
25k
Fantastic passwords and where to find them - at NoRuKo
philnash
48
2.8k
What's in a price? How to price your products and services
michaelherold
242
11k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
326
21k
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/
͝ਗ਼ௌ͍͖ͨͩ͋Γ͕ͱ͏͍͟͝·ͨ͠