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
Devour The Cloud With Locust Swarms - Hands On ...
Search
stevenjackson
January 09, 2018
Technology
0
73
Devour The Cloud With Locust Swarms - Hands On Load Testing
Given at CodeMash 2.0.1.8
stevenjackson
January 09, 2018
Tweet
Share
More Decks by stevenjackson
See All by stevenjackson
Death By Specification
stevenjackson
1
35
Looking for Failure
stevenjackson
0
130
Better Software Through Shared Understanding
stevenjackson
0
150
Going to Eleven
stevenjackson
0
64
A Locust Storm Is A Good Thing!
stevenjackson
0
120
Lambda Image Resizing
stevenjackson
0
75
Faliing Your Way To Success
stevenjackson
0
84
Death By Specification(cukeup)
stevenjackson
0
130
Failure Lightning Talk
stevenjackson
0
96
Other Decks in Technology
See All in Technology
DuckDB-Wasmを使って ブラウザ上でRDBMSを動かす
hacusk
1
130
アジャイルテストで高品質のスプリントレビューを
takesection
0
120
[CV勉強会@関東 CVPR2025 読み会] MegaSaM: Accurate, Fast, and Robust Structure and Motion from Casual Dynamic Videos (Li+, CVPR2025)
abemii
0
200
Figma + Storybook + PlaywrightのMCPを使ったフロントエンド開発
yug1224
10
3.1k
見てわかるテスト駆動開発
recruitengineers
PRO
6
1.5k
夢の印税生活 / Life on Royalties
tmtms
0
290
Goss: New Production-Ready Go Binding for Faiss #coefl_go_jp
bengo4com
0
1.1k
進捗
ydah
1
160
「AI2027」を紐解く ― AGI・ASI・シンギュラリティ
masayamoriofficial
0
120
AIドリブンのソフトウェア開発 - うまいやり方とまずいやり方
okdt
PRO
9
690
第4回 関東Kaggler会 [Training LLMs with Limited VRAM]
tascj
12
1.9k
制約理論(ToC)入門
recruitengineers
PRO
7
2.6k
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
185
54k
GraphQLとの向き合い方2022年版
quramy
49
14k
The Straight Up "How To Draw Better" Workshop
denniskardys
236
140k
The World Runs on Bad Software
bkeepers
PRO
70
11k
Six Lessons from altMBA
skipperchong
28
4k
Code Reviewing Like a Champion
maltzj
525
40k
Done Done
chrislema
185
16k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.6k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
283
13k
How to Think Like a Performance Engineer
csswizardry
25
1.8k
Transcript
Devour the Cloud Do you have an AWS Account?
nick @stevejxsn @nickbarendt # codemash #devour-the-cloud
[email protected]
[email protected]
Nick Barendt
Steve Jackson
None
Setup AMIs http://bit.do/devour-aws
AMIs Saleor Locust ami-da98c7a0 ami-a59bc4df You can also search for
“CM2018”
If you leave early…. Remember to stop/terminate your AWS instances!
Explore Saleor (our system under test today)
What is Load Testing?
It’s often pictured this way...
None
Load Testing simulates the experience of “many” concurrent users What
is Load Testing?
Load Testing is not about optimizing the per user experience
Most test tools are bad at Assets Javascript
None
None
None
Needing load testing is a good problem
It’s not hard…. Resource Planning Performance Regressions Architecture Changes
Ok, so what are we focusing on?
Key Question: How many users can I have on my
site before things break?
Key Question: How many users can I add before performance
becomes unacceptable?
None
None
Close Enough
None
It’s About Tradeoffs
None
Why Locust?
Simple When will this endpoint fall over?
Record/Playback Easy to get Started
Programmatic Simple -> Complex
DSL
Scales Horizontally
Scales Horizontally
None
Simple Web UI
None
User Signup http://bit.do/devour-signup
Buy! http://bit.do/devour-buy
User Funnel
None
None
None
None
100% Returning Users (20%) Find Cart Buy 80% 75%
25% 100% New Users (80%) Visit Cart Buy 97% 50%
Find
25% 100% User Funnel Visit Cart Buy 97% 50% Find
100% Find Cart Buy 80% 75% New 80% Old 20%
Weigh Tasks http://bit.do/devour-funnel
Find a Baseline
None
Identify Bottleneck
None
None
?
None
Saleor Architecture
Eliminate Bottleneck
Database Laziness Index Connection Pooling
Caching
Async
Current Architecture
Architecture with Caching
View Caching http://bit.do/devour-caching
Find new Baseline
Next Steps Choose Your Own Adventure http://bit.do/devour-advanced
Thanks! REMEMBER TO SHUT DOWN YOUR MACHINES! @stevejxsn @nickbarendt