Ritesh Roushan

15.5K posts

Ritesh Roushan banner
Ritesh Roushan

Ritesh Roushan

@devXritesh

Software Engineer at Startup 🇮🇳 • System Design • Microservices • AI Infrastructure | Creating real-world content for devs | DM for Collab & Work

172.16.0.1 Katılım Şubat 2018
868 Takip Edilen4.2K Takipçiler
Sabitlenmiş Tweet
Ritesh Roushan
Ritesh Roushan@devXritesh·
System Design Series - Day 14/30 Your API just got featured on TechCrunch. 10,000 requests per second suddenly hit your server. Your database crashes. Your app goes down. You lose $50K in sales in a single hour. This could have been prevented with one thing: an API Gateway. Think of an API Gateway as the bouncer standing in front of your backend. Before API Gateway: Users directly hit your backend servers for every request. After API Gateway: Users → API Gateway → Backend servers The gateway filters bad traffic, handles rate limiting, authentication, and routing before anything reaches your actual servers. Real Black Friday Example: Without Gateway: - 15,000 requests per second hit the servers - 12,000 were bots, scrapers and abusers - Only 3,000 were real users - Servers ran at 95% CPU - Final bill: $8,000 in overages With Gateway: - 15,000 requests hit the gateway - 12,000 malicious requests blocked instantly - Only 3,000 reached the backend - Servers stayed at 35% CPU - Total cost: $1,200 What a good API Gateway actually does: • Rate limiting (stops abuse) • Request validation (rejects malformed requests instantly) • Centralized authentication (JWT, API keys) • Caching for repeated requests • Intelligent routing and load balancing • DDoS protection Popular options: - Kong (open-source and powerful) - AWS API Gateway (serverless, auto-scales) - Nginx (lightweight and customizable) - Cloudflare (excellent free tier + DDoS protection) Bottom line: If your API is public-facing, an API Gateway is not optional. It is basic infrastructure. Stop letting every bot and abuser hit your backend directly. Tomorrow: Rate Limiting strategies that actually work. Have you implemented an API Gateway yet? Or are you still exposing your backend servers directly? Drop your current setup below.
Ritesh Roushan tweet media
English
28
7
62
808
Shruti
Shruti@Suii2210·
How's your Monday going ?
English
3
0
5
37
Shub
Shub@shub0414·
Your future husband isn't on dating app. He's on Claude!
English
11
0
13
69
Ritesh Roushan
Ritesh Roushan@devXritesh·
USA has: ChatGPT, Grok, Claude, Gemini, Copilot. China has: DeepSeek, Qwen, GLM, Kimi, MiniMax. India has: Krutrim, Sarvam, Hanooman, OpenHathi. Rest of the world, What are y’all even doing?
English
28
3
38
865
Ritesh Roushan retweetledi
Ritesh Roushan
Ritesh Roushan@devXritesh·
System Design Series - Day 14/30 Your API just got featured on TechCrunch. 10,000 requests per second suddenly hit your server. Your database crashes. Your app goes down. You lose $50K in sales in a single hour. This could have been prevented with one thing: an API Gateway. Think of an API Gateway as the bouncer standing in front of your backend. Before API Gateway: Users directly hit your backend servers for every request. After API Gateway: Users → API Gateway → Backend servers The gateway filters bad traffic, handles rate limiting, authentication, and routing before anything reaches your actual servers. Real Black Friday Example: Without Gateway: - 15,000 requests per second hit the servers - 12,000 were bots, scrapers and abusers - Only 3,000 were real users - Servers ran at 95% CPU - Final bill: $8,000 in overages With Gateway: - 15,000 requests hit the gateway - 12,000 malicious requests blocked instantly - Only 3,000 reached the backend - Servers stayed at 35% CPU - Total cost: $1,200 What a good API Gateway actually does: • Rate limiting (stops abuse) • Request validation (rejects malformed requests instantly) • Centralized authentication (JWT, API keys) • Caching for repeated requests • Intelligent routing and load balancing • DDoS protection Popular options: - Kong (open-source and powerful) - AWS API Gateway (serverless, auto-scales) - Nginx (lightweight and customizable) - Cloudflare (excellent free tier + DDoS protection) Bottom line: If your API is public-facing, an API Gateway is not optional. It is basic infrastructure. Stop letting every bot and abuser hit your backend directly. Tomorrow: Rate Limiting strategies that actually work. Have you implemented an API Gateway yet? Or are you still exposing your backend servers directly? Drop your current setup below.
Ritesh Roushan tweet media
English
28
7
62
808
Ritesh Roushan retweetledi
Ritesh Roushan
Ritesh Roushan@devXritesh·
Your prestigious FAANG offer is becoming worthless in 2026 2021: Land a Meta offer at $400K TC → feel like a god. 2024-2025: Massive layoffs hit, Team dissolved. Back on the market. 2026: “I was a Meta engineer” sounds like “I used to work at Blockbuster.” Prestige is temporary. Real skills are permanent The engineer who spent 3 years at FAANG: - Learned company-specific internal tools - Worked on 0.001% of the actual product - Has almost zero transferable skills The engineer who spent 3 years building real products: - Owns full architecture decisions - Has a strong portfolio - Can build and ship anything, anywhere Brand names don’t save careers anymore. Capability does. Where are you betting your future prestige or real skill? Be honest 👇
English
16
5
29
536
Inosuke
Inosuke@Inosukeei_coder·
That one mf everytime.
English
9
0
12
46
NOVA
NOVA@Its_Nova1012·
What was your first mobile OS? - Symbian - iOS - Windows Phone - Android And what is your daily driver now?
English
15
1
19
94
Ranjib
Ranjib@SethiRanji6788·
how many of you remember the original ChatGPT homepage from 1998
Ranjib tweet media
English
5
0
8
34
zavx
zavx@zavxai·
I don’t know how can we verify the X with the mobile number really frustrating af
zavx tweet media
English
9
0
12
167
Mr Ash
Mr Ash@ash_twtz·
Interviewer: You log into Netflix on five devices at once. How does it actually know they’re different devices?
English
42
1
48
1.5K
Kasif
Kasif@md_kasif_uddin·
Be honest, which app owns your notifications?
Kasif tweet mediaKasif tweet mediaKasif tweet mediaKasif tweet media
English
40
1
37
562
Ray🫧
Ray🫧@ravikiran_dev7·
Be honest , As a developer, which database is better in the AI era?
Ray🫧 tweet mediaRay🫧 tweet mediaRay🫧 tweet mediaRay🫧 tweet media
English
46
1
50
1.6K
Abhishek Kalita
Abhishek Kalita@trying_to_exits·
if Apple starts selling water bottles.
Abhishek Kalita tweet media
English
10
0
17
112
avrl ☘
avrl ☘@avrldotdev·
10 Data Storage concepts on a weekend: 0. File-based storage 1. Page cache 2. B+ tree index 3. Compaction (LSM) 4. Compression (basic) 5. Checkpointing 6. Snapshotting 7. MVCC (version concurrency) 8. Garbage collection 9. Disk & Memory levels
avrl ☘@avrldotdev

10 DB concepts you must learn for backend: 0. Replication (sync/async) 1. Indexes (query perf) 2. CAP theorem (trade-offs) 3. Consistency models (strong/eventual) 4. Quorums (R/W majority) 5. Leader election (failover) 6. Write Ahead Log 7. MVCC (concurrency) 8. Replicas (low latency) 9. Transactions (2PC/SAGA)

English
6
3
34
595
Rahul 🥷
Rahul 🥷@themishra4402·
If you had to choose only one: iPhone or iPad
Rahul 🥷 tweet mediaRahul 🥷 tweet media
English
44
2
56
759
NOVA
NOVA@Its_Nova1012·
Meet Sundar Pichai ➤ Grew up in a small apartment in Chennai ➤ No TV. No car. Shared a room with family ➤ His father was an electrical engineer ➤ First time he saw a phone, it stuck with him ➤ He had an insane memory ➤ Could remember phone numbers easily ➤ Studied at Indian IIT Kharagpur ➤ Got a scholarship to Stanford University ➤ His father spent nearly a year’s salary ➤ Just to send him to the US ➤ Worked at Applied Materials ➤ Later did his MBA at Wharton School ➤ Joined Google in 2004 ➤ Not as CEO. ➤ Started with Google Toolbar ➤ Then pushed an idea, led the team that built a browser ➤ That became Google Chrome and was launched in 2008 ➤ Chrome changed the internet ➤ Led products like Search, Gmail, Maps, Android ➤ Became CEO in 2015 ➤ No hype. No noise. Just execution If he can do it then you can do it too, just believe in yourself.
NOVA tweet mediaNOVA tweet media
English
25
1
32
624
Ritesh Roushan
Ritesh Roushan@devXritesh·
@shubh19 2 is hitting me, I have shared quality real content but forget too people want to meme type things..... that's why shifting need
English
1
0
1
13
Shubh Jain
Shubh Jain@shubh19·
7 mistakes content creators make: 1. Posting without a hook 2. Educating but never entertaining 3. No content repurposing system 4. Chasing followers, ignoring retention 5. Copying formats instead of building voice 6. No CTA or a weak one 7. Giving up at 500 followers which mistake kept you stuck the longest?
English
4
1
8
73