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
68
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
32
Looking for Failure
stevenjackson
0
120
Better Software Through Shared Understanding
stevenjackson
0
140
Going to Eleven
stevenjackson
0
60
A Locust Storm Is A Good Thing!
stevenjackson
0
110
Lambda Image Resizing
stevenjackson
0
74
Faliing Your Way To Success
stevenjackson
0
82
Death By Specification(cukeup)
stevenjackson
0
130
Failure Lightning Talk
stevenjackson
0
96
Other Decks in Technology
See All in Technology
初めてのAzure FunctionsをClaude Codeで作ってみた / My first Azure Functions using Claude Code
hideakiaoyagi
1
140
VCpp Link and Library - C++ breaktime 2025 Summer
harukasao
0
210
IIWレポートからみるID業界で話題のMCP
fujie
0
580
マルチテナント+マルチプロダクト SaaS への AI Agent の組み込み方
kworkdev
PRO
2
390
Long journey of Continuous Delivery at Mercari
hisaharu
1
230
キャディでのApache Iceberg, Trino採用事例 -Apache Iceberg and Trino Usecase in CADDi--
caddi_eng
0
160
Snowflake Intelligenceで実現できるノーコードAI活用
takumimukaiyama
1
280
Observability infrastructure behind the trillion-messages scale Kafka platform
lycorptech_jp
PRO
0
110
Cloud Native Scalability for Internal Developer Platforms
hhiroshell
2
490
API の仕様から紐解く「MCP 入門」 ~MCP の「コンテキスト」って何だ?~
cdataj
0
170
AIにどこまで任せる?実務で使える(かもしれない)AIエージェント設計の考え方
har1101
3
1.2k
ユーザーのプロフィールデータを活用した推薦精度向上の取り組み
yudai00
0
440
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
32
5.9k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Building Adaptive Systems
keathley
43
2.6k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
50k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Why You Should Never Use an ORM
jnunemaker
PRO
56
9.4k
Product Roadmaps are Hard
iamctodd
PRO
53
11k
StorybookのUI Testing Handbookを読んだ
zakiyama
30
5.8k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
46
9.6k
[RailsConf 2023] Rails as a piece of cake
palkan
55
5.6k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.3k
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