Scale Engineer (@scale_engineer) header
Scale Engineer (@scale_engineer) profile picture

Learn software through visuals, interactivity, and practice. Join 75k+ engineers from companies like Google, Microsoft, and Amazon read. @rohitlakh

Joined November 2023
Photo by Scale Engineer (@scale_engineer)Photo by Scale Engineer (@scale_engineer)Photo by Scale Engineer (@scale_engineer)Photo by Scale Engineer (@scale_engineer)Photo by Scale Engineer (@scale_engineer)Photo by Scale Engineer (@scale_engineer)Photo by Scale Engineer (@scale_engineer)Photo by Scale Engineer (@scale_engineer)Photo by Scale Engineer (@scale_engineer)Photo by Scale Engineer (@scale_engineer)
What is serverless?
Ever heard of Serverless and thought: "Waitโ€ฆ no servers?" Donโ€™t worry, youโ€™re not alone. Letโ€™s break down what Serverless actually means, how it works, and why itโ€™s reshaping modern apps. ๐Ÿ‘‡
2
428
Replying to @ParamSiddh
You should check us out too ๐Ÿ˜Š
12
11 Basic concepts every Backend Engineer Should Know๐Ÿ‘‡
3
1
13
744
100 weeks of writing newsletter through @beehiiv Consistency is paying off
2
2
15
1,509
How did Instagram scale from 0 โ†’ 14M users in just over a year with only 3 engineers? - Built on Django for rapid iteration, iOS-only launch - AWS migration: EC2, S3, CloudFront, Elastic Load Balancing - Data strategy: PostgreSQL + NoSQL, caching with Redis/Memcached, sharding & replication - Media processing: JPEG compression, H.264 encoding, ML for moderation & tagging. Scaling further: - Explore System: Multi-stage ranking + Two-Tower Neural Network for personalized recommendations - Security & Monitoring: Encryption, 2FA, Sentry, Pingdom - AI-driven personalization: Bayesian optimization, CV tagging, engagement weighting Key lessons: Start simple โ†’ optimize later, cloud flexibility, caching & AI personalization = growth
2
6
845
It's Black Friday, traffic suddenly explodes 10x. Your app automatically adds more servers to handle the load. But just adding servers isnโ€™t enough something else could break (like your database or backend). What extra strategy would keep your app running, even when traffic goes crazy?
1
7
408
Your friend starts streaming a fast-paced FPS on Discord. Suddenly, their WiFi drops from 100 Mbps to 5 Mbps. The stream doesnโ€™t just stop Discord lowers quality and drops frames to keep it alive. If you were designing this, what would you sacrifice: clarity or smoothness?
1
2
7
468
Your storage layer is cracking. Cassandra struggles with multi-tenant workloads at massive scale. Billions of tweets must stay instantly available. Do you keep pushing and tuning Cassandra, or take the leap and design a custom storage system from scratch?
1
6
377
Pinterest didnโ€™t start dreaming of 500M users. In 2010, 3 founders + 1 engineer ran Python scripts in a tiny apartment. Their first stack was simple: Python for app logic, NGINX as HTTP proxy, MySQL with a read replica, MongoDB for counters, and a basic task queue. Users flooded in, they added more tech, Redis, Cassandra, MBase, but that created new problems. By late 2011, the lesson was clear: fewer, reliable tools win. Core stack: - MySQL โ†’ reliable storage, sharded to scale horizontally - Redis โ†’ blazing fast in-memory data, feeds & follower graphs - Memcached โ†’ caches frequent data, reduces DB load, absorbs spikes - Scaling & architecture: - Monolith โ†’ microservices: Search, Feed, MySQL (sharding), PinLater (background tasks) - PinLater โ†’ queues tasks in MySQL, crash-resistant, auto-retries, priority management - Zookeeper โ†’ services auto-register, better load balancing, elasticity Data pipelines: Kafka โ†’ Secor โ†’ S3 โ†’ real-time capture of pins, likes, follows, errors โ†’ structured analytics Lessons & wisdom: Log everything from day 1 Pick boring, proven tech Donโ€™t start with complexity Monitor what matters Simplify before optimizing Pinterest proves: speed first, simplicity wins, and reliable tools scale best. Read full article: hw.glich.co/p/how-pinterest-โ€ฆ
2
6
10
906
Imagine running a massive library with millions of books. Visitors walk in, ask for a book, and expect instant results. To handle this, you need a powerful search system. Thatโ€™s exactly what Elasticsearch does for data... Think of Elasticsearch as Google for your own data. Itโ€™s a distributed, horizontally scalable search engine that stores data as JSON documents. Core flow: Data โ†’ Indices โ†’ split into Shards โ†’ distributed across Nodes โ†’ form a Cluster Inverted Index โ†’ makes search ๐Ÿ”ฅ fast Key concepts to remember: Document โ†’ JSON object Index โ†’ collection of docs Shard โ†’ index split Replica โ†’ redundancy Cluster/Node โ†’ group of servers Used for: logs, metrics, app & website search, analytics. Trusted by Netflix, eBay, Walmart
1
3
10
761
Ever heard of Serverless and thought: "Waitโ€ฆ no servers?" Donโ€™t worry, youโ€™re not alone. Letโ€™s break down what Serverless actually means, how it works, and why itโ€™s reshaping modern apps. First things first: Serverless โ‰  No Servers Your code still runs on servers. The difference? You donโ€™t manage them. The cloud provider handles provisioning, scaling & maintenance. You just focus on writing code. Non-Serverless example (AWS EC2): โ€ข You write backend code (say Node.js/Python/Go). โ€ข To run it, you spin up an EC2 instance (a virtual machine). โ€ข You pick RAM, storage, OS, install dependencies, monitor usage. โ€ข Youโ€™re billed per hour, even if no traffic. You manage everything. Serverless example (AWS Lambda): โ€ข You upload your code. โ€ข AWS decides RAM, OS, scaling, deployment. โ€ข Code runs only when triggered (API request, event, etc). โ€ข Billed per invocation (e.g. $0.001/request). No idle costs. No server headaches. Billing difference: โ€ข Non-serverless: Pay 24ร—7 (even at 0 traffic). โ€ข Serverless: Pay only when code runs. If your app has zero traffic, you pay zero, but if you have high traffic, the cost can skyrocket too. Scaling: โ€ข Traditional servers โ†’ you manually configure Auto-Scaling Groups. โ€ข Serverless โ†’ scales automatically. Got 1000 users suddenly? Your function runs in parallel across multiple instances, no setup needed. In a nutshell: Serverless = run code without worrying about servers. Itโ€™s event-driven, scales automatically, and saves costs. Perfect for modern apps where traffic can be unpredictable.
2
7
13
1,068
Ever wondered how your password stays safe onlineโ€ฆ
Ever wondered how your password stays safe onlineโ€ฆ โ€ฆor how you can trust that a downloaded file isnโ€™t tampered with? The answer is Hashing: a powerful technique that turns data into unique codes. Letโ€™s break it down ๐Ÿ‘‡
225
How is it even possible?
Ever made a video call straight from your browser and thought: "Wait, how is this possible without an app or plugin?" Thatโ€™s the magic of WebRTC: real-time peer-to-peer communication on the web. Letโ€™s break it down ๐Ÿงต
1
62
How can you log into an app using Google or Facebook without sharing your password? Or how apps fetch your data securely without asking for your credentials? Thatโ€™s thanks to OAuth. Letโ€™s break it down ๐Ÿงต
2
6
1
9
915
What is TikTok's secret sauce? Read the article
Ever wondered how TikTok delivers millions of personalized videos smoothly every day? Itโ€™s not magic: it's a mix of microservices, ML, databases, and CDNs working in perfect sync. Letโ€™s peek into TikTokโ€™s tech stack
173
How Reddit handles 91 million active users daily? Find out
Reddit has 504M+ users with 91M daily actives. Thatโ€™s an insane scale. But with billions of posts containing images, GIFs & videos, Reddit faced a tough challenge: Efficiently storing & serving media metadata at scale. Hereโ€™s how they solved it ๐Ÿ‘‡
1
158
What's behind the BBC's architecture!
How does the BBC handle millions of visitors during breaking news when traffic can TRIPLE in seconds? The secret: Serverless computing (AWS Lambda). Hereโ€™s how the worldโ€™s oldest broadcaster scaled for the internet age ๐Ÿงต
185
Twitter stays online when millions are tweeting! How??
Twitter stays online even when millions are tweeting every second! Maintaining high availability (HA) at this scale is no joke. Hereโ€™s how Twitter does it, with Kubernetes ๐Ÿงต
82
Why you buy more when you are in Amazon. Find out!
Ever wondered how Amazon seems to know exactly what you want, sometimes before you do? From books to gadgets, its recommendation engine is scarily accurate. Letโ€™s break down how it works ๐Ÿงต
1
152
The birth of Instagram.
How did Instagram scale from 0 to 14 million users in just over a year with only 3 engineers? From simple photo-sharing app to billion-user platform, here's the technical journey behind one of tech's greatest scaling stories ๐Ÿงต
296