Kamal: Why and how you should leave the cloud? // Paris.rb at @algolia
Self-Hosting Revolution and Kamal 2 // Double Slash Podcastguillaumebriday.fr/articles
A little bit of context
Jean Boussier & IO-Bound Misconceptions - On Rails Podcast
Scale fatigue
"Does it scale?™"
"Maybe we should switch to NoSQL"
"What if we rewrite everything in Go?"
"We're fundraising, so we must prepare for massive scale!!"
"Auto-scaling is essential for our traffic"
"The world's fastest and most scalable cloud databases"
"Build in a weekend, Scale to millions"
Orders of magnitude
One million of seconds is 11 days,
One billion of seconds is 31 years
Orders of magnitude
How many (active) users? 100, 1k, 100k?
What kind of visitors do you have?
How many RPS?
I/O bound or CPU bound?
You are not Shopify nor TikTok
What is your market size?
What is your current growth rate?
Orders of magnitude
Scalability is linear and predictable
DuolingoSpotifyTwitter
Orders of magnitude
Your growth is directly correlated to your actions
What is the performance that really matters?
What is your business strategy? VC or bootstrapped?
What is your EBITDA?
What do your users actually need?
🏎️ vs 🚎?
More features or faster page loads?
Reliability? Resilience?
Get your workflows to scale before your stack
This isn't a technical problem
"If it really takes millions of visitors to make a go of it, you may simply be in the wrong business"
"Make sure you get the right visitors rather than just any visitors" -
Jacques Mattheij