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
Crónica de una escala anunciada
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Damian Schenkelman
June 23, 2016
Programming
200
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Crónica de una escala anunciada
Damian Schenkelman
June 23, 2016
More Decks by Damian Schenkelman
See All by Damian Schenkelman
Identidad en Web3
dschenkelman
0
350
Demo Identidad en Web3
dschenkelman
1
190
Deep Dive Into Google Zanzibar and its Concepts for Authorization Scenarios
dschenkelman
1
1.4k
Authorization is on the rise. What if there was an API for it?
dschenkelman
0
150
All About AuthZ
dschenkelman
1
460
Evolving Auth0's architecture: From 0 to 2.5+ billion logins per month in 5 years
dschenkelman
1
1.3k
Remote work at Auth0
dschenkelman
0
200
El camino a SRE
dschenkelman
0
210
IDaaS at Scale - From 0 to 2.5B+ logins/month (Auth0 Webinar)
dschenkelman
0
110
Other Decks in Programming
See All in Programming
Embedded SREと共に達成した会員管理システムのAWS移行 - SRE NEXT 2026 ランチスポンサーセッション
niftycorp
PRO
1
2.3k
Go1.27で導入されるジェネリクスメソッドでできること
mackee
0
280
Hatena Engineer Seminar #37「言語モデルの活用に関する研究」
slashnephy
0
510
Honoでのサプライチェーン侵害対策 〜 3つのライブラリに学ぶ
yusukebe
7
1.8k
そのテスト、説明できますか?~LWテスト戦略FW~のご紹介
nakahara
0
200
SREは、MCPとSRE Agentをこう使え!
kazumax55
0
150
例外の正しい扱い方 そのエラー try-catchして大丈夫?
jinwatanabe
0
360
act2-costs.pdf
sumedhbala
0
110
吝嗇家のためのAI活用 / AI development for miser - ChatGPT + Issue Driven Development
tooppoo
0
180
信頼性について考えてみる(SRE NEXT 2026 miniLT)
hayama17
0
150
Language Server 使ってる? 〜VSCode と Zed の場合〜 / Are you using a Language Server? ~For VS Code and Zed~
handlename
0
840
Haskell/Servantを通してWebミドルウェアを捉え直す
pizzacat83
1
480
Featured
See All Featured
A Soul's Torment
seathinner
6
3k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
330
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
260
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.1k
The untapped power of vector embeddings
frankvandijk
2
1.8k
BBQ
matthewcrist
89
10k
The SEO Collaboration Effect
kristinabergwall1
1
500
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
62
44k
Speed Design
sergeychernyshev
33
1.9k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.6k
Building the Perfect Custom Keyboard
takai
2
810
Scaling GitHub
holman
464
140k
Transcript
Crónica de una escala anunciada npm i dschenkelman
Building a product
Demand
Stabilize
Auth API Identity provider DB Scenario Client
Expected response times
Actual response times
Admit the problem
The problem
Flame graphs
T-shirt time
Password Hashing app.post('/authenticate', (req, res) => { // fetch the
user by req.username from db db.users.findOne({ email: req.body.email }, (err, user) => { ... // compare bcrypt for req.password to db hash const success = bcrypt.compare(req.body.password, user.passwordHash); res.send(success ? 200 : 401); }); });
Scale
Faster Hash
Caching
Scale up
Multiple IdP instances ELB IdP IdP IdP IdP
BaaS app.use('/login', (req, res) => { // fetch the user
by req.username from db db.users.findOne({ email: req.body.email }, (err, user) => { ... // compare bcrypt for req.password to db hash baas.compare(req.body.password, user.passwordHash).then((e success) => { res.send(err || !success ? 401 : 200); }); }); });
Auto Scaling Identity provider ELB BaaS BaaS BaaS BaaS
Cost comparison Price / (1M req) #req per sec /
vCPU t2-micro $0.36 10.00 t2-medium $0.76 9.50 c4-large $1.53 10.00 c3-8xlarge $1.64 8.88
Fail gracefully
Bye
Links • http://security.stackexchange.com/a/83382 • http://www.brendangregg.com/FlameGraphs/ cpuflamegraphs.html • https://github.com/thlorenz/v8-perf/issues/4 • https://github.com/auth0/node-baas
• http://docs.aws.amazon.com/AutoScaling/latest/ DeveloperGuide/US_SetUpASLBApp.html • https://gist.github.com/trevnorris/9616784
Thanks https://github.com/dschenkelman/bcrypt-sample @dschenkelman npm i dschenkelman