Ritesh Roushan

7.5K posts

Ritesh Roushan banner
Ritesh Roushan

Ritesh Roushan

@devXritesh

Building prod-grade backend systems at scale 🇮🇳 • System Design • Microservices • AI Infra • Real war stories from live systems | Founder: The 1% Engineers

172.16.0.1 Sumali Şubat 2018
747 Sinusundan1.2K Mga Tagasunod
Naka-pin na Tweet
Ritesh Roushan
Ritesh Roushan@devXritesh·
🧠 Google autocomplete is straight-up sorcery. You type just "how to..." And it instantly drops: • how to make money • how to cook pasta • how to tie a tie This happens across 16.4 BILLION searches every single day in 2026. How the hell does it return perfect suggestions in under 100ms at this scale? Deep technical breakdown 👇 1. Trie (Prefix Tree) - The Magic Data Structure Every character is a node in a tree. Typing “h-o-w- -t-o” walks straight to the exact prefix node in O(K) time (K = length of input). No scanning billions of queries just instant pointer to all completions. 2. Precomputed + Smart Ranking Offline pipelines crunch trillions of past searches daily. Each trie node stores top-K suggestions pre-ranked by: • Frequency & trends • Click-through rate • Personalization (your history) + location + freshness ML models keep everything updated in real-time. 3. Production-Grade Scaling • Sharded & replicated across global data centers • In-memory layers (custom + Redis-style caching) for hottest prefixes • Edge/CDN caching + microservices load balancing • Handles 100,000+ queries per second with p99 latency <100ms This exact pattern powers autocomplete on LinkedIn, Amazon, YouTube anywhere you see instant suggestions. Backend & system design devs: this is the gold standard. Saved this thread? Drop 🔥 below. What Google feature should I break down next?
Ritesh Roushan@devXritesh

As a developer, Have you ever wondered : You type just "how to" in Google search and it instantly shows full suggestions like "how to make money", "how to cook pasta" etc... There are 8.5+ billion searches globally every day. How is this autocomplete so fast?

English
2
0
10
209
Vedant Reddy
Vedant Reddy@Reddy__253·
@Hiteshdotcom Mein to vella hu 😭, sir aap mujhe block kardo thoda alag content ho jayega
हिन्दी
1
0
2
233
Hitesh Choudhary
Hitesh Choudhary@Hiteshdotcom·
Twitter is nice but a few unknown face with blue ticks are trying very hard to get engagement revenue. It’s fine for me, I am retired and can afford to waste a day in having fun n laugh. You should be very careful with this. My recommendation is that you will get value only from real people because they know the words like accountability n reliability. Baaki aapka jo mn ho kro, aazad desh h ji. 😁
English
10
5
97
2.1K
Shubh Jain
Shubh Jain@shubh19·
If you’re job hunting, this 30-second LinkedIn Hack is gold. 👇🏻 You see your dream job, then you see 1000+ applications. Now you can be the first one to apply. We have a simple LinkedIn hack that you can use to be the first person to apply for a job. Here’s how it works: 1. Look for a job like you do on LinkedIn. 2. Filter for “Past 24 hours.” This activates a time filter in the URL. 3. In the URL bar, look for this part: r86400. It stands for 24 hours. 4. In the URL, change "86400" to “1800" 5. Changing the URL will only show jobs posted within the last 30 minutes. Take some time to edit the resume and then apply! How does this work? The “86400” is a day in seconds, and you can play around with the number to filter for jobs For last, 12 hours = 43200 6 hours = 21600 1 hour = 3600 30 mins = 1800 Happy job hunting.
English
1
0
2
15
Arte
Arte@hida_artemis·
@devXritesh not just mine, everyone can build theirs yeah I do use three.js as one of the part
English
1
0
1
7
Arte
Arte@hida_artemis·
been working on this for more than a week now. building your own game engine is definitely not easy. V1 should be shipped max next month 👀 tuning and fixing all errors and codes (there is so so much that need to be keeping in mind)😭 the vision is so you can build your own world and make visitor explore your works :) *it's a portfolio / site world builder*
Arte@hida_artemis

I'm cooking something what if you can BUILD your own portfolio world 👀

English
7
0
7
36
Ritesh Roushan
Ritesh Roushan@devXritesh·
@hiarun02 I would delete two things first that ATS tracking system and second literally vibe coding.
English
0
0
0
8
Arun
Arun@hiarun02·
If you could delete ONE technology from existence, what would it be?
English
12
0
16
271
Ritesh Roushan
Ritesh Roushan@devXritesh·
@konnydev Full application building with deployment. We need to just write a single prompt 🫠
English
1
0
1
12
Konny
Konny@konnydev·
In 2024 we had code completion In 2025 we had vibe coding In 2026 we have … ?
English
14
0
12
131
Rowan
Rowan@knowRowan·
AI generated code summed up:
Rowan tweet media
English
12
0
12
71
Vishal
Vishal@vishaltweetup·
Which one do you need right now: • MacBook • iPhone
Vishal tweet mediaVishal tweet media
English
5
0
4
45
Ritesh Roushan
Ritesh Roushan@devXritesh·
System Design Series - Week 1 Q&A Drop your questions from this week: - REST API design - SQL vs NoSQL choice - Database indexes - API pagination I'll answer every single one. Let's clarify before Week 2 starts Monday. Questions below 👇 #SystemDesign #QandA #Week1
English
5
1
8
115
Ritesh Roushan
Ritesh Roushan@devXritesh·
MySQL Faster for simple read-heavy apps Easy to set up, widely used in web apps (LAMP stack) Good for basic CRUD systems PostgreSQL More powerful & feature-rich (complex queries, joins, JSON support) Better for scalability, analytics, and strict data integrity Preferred for fintech, SaaS, and system design-heavy apps Rule: Simple app → MySQL Complex/scalable system → PostgreSQL
English
0
0
0
5
Rahul 🥷
Rahul 🥷@therahul4402·
Aise hi Hitesh sir ko sir nahi bolte… sir mazaak me fees bhi double kar dete hai 😭
Rahul 🥷 tweet mediaRahul 🥷 tweet media
हिन्दी
18
1
27
128
Ray🫧
Ray🫧@ravikiran_dev7·
Does keeping your laptop plugged in at 100% while using it , slowly ruin the battery or is it just a myth?
Ray🫧 tweet media
English
12
1
18
1.1K
Ritesh Roushan
Ritesh Roushan@devXritesh·
@priyankapudi It's painful feeling because work hard in prompting but forgot to care about technical issues.
English
1
0
1
5
Priyanka Pudi
Priyanka Pudi@priyankapudi·
Vibe coders when the app worked perfectly in development But crashed the moment it hit production
English
3
0
3
67
Ritesh Roushan
Ritesh Roushan@devXritesh·
@shubh19 Definitely not, I'm telling after Learning. Checked X and scrolling and you find such post.
English
1
0
1
8
Ritesh Roushan
Ritesh Roushan@devXritesh·
Me learning something cutting-edge: 😎 𝕏 5 seconds later: "It's been dead bro" 🔥💀
Ritesh Roushan tweet media
English
3
1
5
71
Ritesh Roushan
Ritesh Roushan@devXritesh·
@nastenka_twt Bro SQL is Language, Postgres is Database. You can ask select b/w MongoDB Vs Postgres or MongoDB or MYSQL
English
1
0
1
5
Ritesh Roushan
Ritesh Roushan@devXritesh·
Use SQL (e.g., PostgreSQL, MySQL) when you need structured data, strong consistency, complex queries like joins, and transactions, like fintech, e-commerce, or user systems. Use NoSQL (e.g., MongoDB) when you need flexibility, high scalability, fast reads/writes, and handle unstructured or rapidly changing data, like real-time apps, analytics, or social feeds.
English
1
0
2
10
Nastenka
Nastenka@nastenka_twt·
@devXritesh which db you'll in which condition eg sql and postgres etc
English
1
0
2
26