Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Crónica de una escala anunciada
Search
Damian Schenkelman
June 23, 2016
Programming
210
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
170
All About AuthZ
dschenkelman
1
480
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
220
IDaaS at Scale - From 0 to 2.5B+ logins/month (Auth0 Webinar)
dschenkelman
0
130
Other Decks in Programming
See All in Programming
Groovy as a human and AI friendly programming language
paulk
0
120
現場と育てるRailsモデリング 〜Spreadsheetから始めたモデル設計〜
siroemk
2
960
Snowflake Openflow Connector利用の勘所 / 20261024developersio2026tokyo-snowflake-openflow
kasacchiful
PRO
0
180
クラウドゲーミングのパフォーマンス最適化に挑む / Cloud Gaming Performance Tuning
vivion
0
260
続・コーディングルールの鮮度を保ちたい / keep-fresh-go-internal-conventions-again
handlename
0
130
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
420
コードで差別化できない時代の ソフトウェアエンジニアリング / Software Engineering in an Era Where Code Doesn’t Differentiate
kishida
2
200
AI主導のプログラミング学習アプリを作ってみた
econanringo
0
190
[JA] Domain Modeling with Vanilla Rails: 「操作」から再考するRailsの設計論
yasaichi
4
970
AIがコードを書いてくれる時代、我々は何を確かめるのか
yosuke_furukawa
PRO
12
4.3k
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
11
8k
FactoryBotをやめればRSpecは速くなるのか?
yuta_onishi_97
0
1.2k
Featured
See All Featured
Heart Work Chapter 1 - Part 1
lfama
PRO
10
37k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
The Curious Case for Waylosing
cassininazir
1
580
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
Large-scale JavaScript Application Architecture
addyosmani
516
110k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
900
The agentic SEO stack - context over prompts
schlessera
0
980
Reality Check: Gamification 10 Years Later
codingconduct
0
2.3k
My Coaching Mixtape
mlcsv
0
360
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
460
ラッコキーワード サービス紹介資料
rakko
4
5.5M
GitHub's CSS Performance
jonrohan
1033
470k
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