jayantftx Profile Banner
Jayant Aggarwal Profile
Jayant Aggarwal

@jayantftx

Followers
136
Following
1K
Media
59
Statuses
413

full stack developer • open to freelance work • 21

Joined August 2017
Don't wanna be here? Send us removal request.
@jayantftx
Jayant Aggarwal
5 days
lunch with the GOAT @striver_79 today🥰
Tweet media one
3
1
143
@jayantftx
Jayant Aggarwal
8 days
Developed a URL shortener. Stack: Go + Fiber + Redis + Docker. Added Security Features:.- Rate limiting.- URL validation .- Domain loop prevention.- Redis TTL
@jayantftx
Jayant Aggarwal
16 days
Remember those short TinyURL urls? . Ever wondered how it works?.
0
0
6
@grok
Grok
5 days
Join millions who have switched to Grok.
201
403
3K
@jayantftx
Jayant Aggarwal
10 days
Deploying new features also became less risky. Kubernetes' rolling updates allowed Netflix to gradually roll out new versions of their services, monitoring for issues and automatically rolling back if something went wrong , minimizing downtime for their massive user base.
0
0
0
@jayantftx
Jayant Aggarwal
10 days
And when the initial rush subsided? Kubernetes could automatically scale back down, optimizing resource usage and saving costs. No more over-provisioning servers "just in case.".
1
0
0
@jayantftx
Jayant Aggarwal
10 days
Imagine the "Stranger Things" season premiere. Millions of people log in at once. With Kubernetes, Netflix could automatically spin up hundreds or even thousands of additional instances of their relevant microservices to handle the load, without any human intervention.
1
0
0
@jayantftx
Jayant Aggarwal
10 days
This is where Kubernetes (though Netflix actually pioneered some of the underlying concepts before Kubernetes existed) provided the answer. By containerizing their microservices and orchestrating them with a system like Kubernetes, they could automate scaling.
Tweet media one
1
0
0
@jayantftx
Jayant Aggarwal
10 days
Netflix, with its massive and unpredictable traffic spikes, needed a better way. They weren't just deploying one monolithic app, they had hundreds of microservices responsible for everything from recommendations to video encoding.
1
0
0
@jayantftx
Jayant Aggarwal
10 days
Think back to the early days of streaming. A new season of a popular show would drop, and BAM! The servers would get hammered. Manually adding and managing servers to keep up was a constant, stressful fire drill.
1
0
0
@jayantftx
Jayant Aggarwal
10 days
Ever had a website slow down during a flash sale? . Or maybe an app that just couldn't handle the sudden surge in users? . Companies like Netflix faced this exact scaling nightmare before fully embracing Kubernetes.
Tweet media one
1
0
2
@jayantftx
Jayant Aggarwal
12 days
For celebrities with millions of followers, a push model would break the system. So, for them, they use the pull model. Their fans' feeds pull the posts on demand.
0
0
0
@jayantftx
Jayant Aggarwal
12 days
Most big platforms use a hybrid model. For regular users, they use the push model to get the post to a few hundred or thousand followers quickly.
1
0
0
@jayantftx
Jayant Aggarwal
12 days
Push Model (Fan-out on Write): When you post, the system immediately pushes your post into the feeds of all your followers. This is lightning-fast for the user, but a nightmare for the system if you have a million followers.
1
0
0
@jayantftx
Jayant Aggarwal
12 days
Pull Model (Fan-out on Load): When you open your feed, the system pulls the latest posts from everyone you follow. This is simple, but it can be really slow if you follow thousands of people.
1
0
0
@jayantftx
Jayant Aggarwal
12 days
The core challenge is simple: how do you get a post from one person to all of their followers? There are two main ways:.Pull Model (Fan-out on Load).Push Model (Fan-out on Write).
1
0
0
@jayantftx
Jayant Aggarwal
12 days
Every time I scroll Twitter or Instagram, my mind is blown by the engineering. Here is what it takes to design a system to handle billions of posts a day:
Tweet media one
1
0
1
@jayantftx
Jayant Aggarwal
14 days
Little glitch on the @ycombinator startup directory: filters break on first load, only work after refresh. Need a good frontend engineer to fix this? @garrytan 👀
3
0
9
@jayantftx
Jayant Aggarwal
15 days
This is what goes behind the notifications we receive everyday 🤯
Tweet media one
0
0
6
@jayantftx
Jayant Aggarwal
15 days
These next 4–5 months aren’t your final push, they’re one of the most impactful pushes you’ll ever make for your career. Stay locked in.
0
0
8
@jayantftx
Jayant Aggarwal
16 days
So, the final architecture looks like this: a client sends a request to a load balancer, which forwards it to an API server. The server either generates a new short URL or looks up an existing one in the database and sends a 301/302 redirect
Tweet media one
0
0
1
@jayantftx
Jayant Aggarwal
16 days
The fix for collisions is a bit messy. You might have to add a random string to the long URL before hashing, or just retry with a different hash. This adds complexity, which is why the base62 counter approach is often preferred for its simplicity and reliability
Tweet media one
1
0
1