@MansiCodez

Senior Software Engineer | System Design | DSA | Interview prep | AI. Collabs or DM : πŸ“© [email protected] for career guidance: https://xitter.cf/t.co/Mcz9YSf0Da

Joined July 2026
Recently I interviewed a Senior Engineer. Strong candidate. Kafka? βœ… Redis? βœ… Microservices? βœ… Distributed systems? βœ… Then I asked: "You're building the inventory service for a flash sale. Only 1 item left in stock." Two users hit β€œBuy Now” at the exact same millisecond. Both requests pass the β€œis available?” check. Both create an order. Both deduct stock. Now you’ve sold 2 items when only 1 existed. How do you guarantee you never oversell β€” even with concurrent requests, client retries, and partial failures? "Just use a database transaction." Doesn’t fully solve it if both requests read `stock = 1` before either writes, or if the response is lost and the client retries. "Check stock before deducting." What happens when both checks happen at the same time? "Use Redis DECR and reject if it goes negative." What happens if Redis is down, or the decrement succeeds but the order is never persisted? Your turn: How would you design this inventory reservation API so concurrent buyers and retries never oversell the last item? There’s a specific distributed-systems concept behind this. And you’ll encounter it everywhere inventory, tickets, seats, coupons, and limited resources are involved.
157
29
82
728
1,082,881
In meetings, I say β€œthat's a good point” when: β€’ It's a good point β€’ I didn't hear the point β€’ I'm thinking about lunch β€’ I want the meeting to end
3
7
284
Mansi πŸ‘©β€πŸ’» retweeted
Recently I interviewed a Senior Backend Engineer. Strong candidate. Load balancing? βœ… Caching? βœ… Database indexing? βœ… Horizontal scaling? βœ… Then I asked: "You're building a product listing service. A product becomes viral. Suddenly, 50,000 requests per second hit the same product ID." Your database is struggling. You add Redis. Traffic drops at the database, and everything looks good. Then the product price changes. For the next 30 seconds, some users see the old price while others see the new one. Worse, an old request finishes late and overwrites the updated cache entry. How do you prevent stale data from coming back?" "Just invalidate the cache." What if an in-flight request repopulates it with stale data immediately after invalidation? "Use a short TTL." What if the business requires price changes to be reflected immediately? "Use a distributed lock." What happens when thousands of requests wait on that lock? Now you've traded stale reads for a latency problem. Your turn: How would you design the cache update and invalidation flow to handle concurrent reads, writes, and delayed requests without serving stale prices? There's a subtle distributed-systems problem hiding behind cache invalidation. And it gets much harder when your cache is distributed across multiple application instances.
2
1
13
630
Vibe coding is fine for prototypes. It’s dangerous for production systems that have real failure modes, compliance requirements, or users who will leave if latency or reliability slips. How many teams are still pretending those two things are the same?
8
3
10
428
Recently I interviewed a Senior Backend Engineer. Strong candidate. Load balancing? βœ… Caching? βœ… Database indexing? βœ… Horizontal scaling? βœ… Then I asked: "You're building a product listing service. A product becomes viral. Suddenly, 50,000 requests per second hit the same product ID." Your database is struggling. You add Redis. Traffic drops at the database, and everything looks good. Then the product price changes. For the next 30 seconds, some users see the old price while others see the new one. Worse, an old request finishes late and overwrites the updated cache entry. How do you prevent stale data from coming back?" "Just invalidate the cache." What if an in-flight request repopulates it with stale data immediately after invalidation? "Use a short TTL." What if the business requires price changes to be reflected immediately? "Use a distributed lock." What happens when thousands of requests wait on that lock? Now you've traded stale reads for a latency problem. Your turn: How would you design the cache update and invalidation flow to handle concurrent reads, writes, and delayed requests without serving stale prices? There's a subtle distributed-systems problem hiding behind cache invalidation. And it gets much harder when your cache is distributed across multiple application instances.
2
1
13
630
Would you hire him ?
2
8
650
Database Interview: SELECT * FROM orders WHERE DATE(created_at) = '2026-10-22'; 50 million rows. Index on created_at exists. Query takes 18 seconds. The index is there. The database still chooses a full table scan. You remove one thing from the query. Suddenly, it finishes in milliseconds. Same table. Same index. Same data. What changed? And why can wrapping an indexed column in a function prevent the database from using a regular B-tree index efficiently? What's your fix? πŸ€”
9
1
1
23
2,898
Opened my laptop to do one small task. It's been 3 hours. I have 17 tabs open and somehow I'm researching whether penguins have knees.
3
10
738
AI: I have completed the implementation. Me: Great. Did you run the tests? AI: I have completed the implementation. πŸ˜•
5
11
665
Unpopular opinion: Shipping AI-generated code faster isn’t automatically productivity. If your team now spends twice as long reviewing, debugging, and maintaining that code, you didn’t accelerate engineering. You moved the bottleneck.
5
13
522
Building an app with AI in 3 hours is impressive. Maintaining it for 3 years is a different challenge. Who owns the data model? What happens when dependencies break? How do you debug a race condition? Who handles the migration that fails halfway? The demo is the beginning of software engineering, not the end.
6
2
25
772
If an engineer deletes 2,000 lines of unnecessary code and improves reliability, did they have a productive week? If another engineer adds 2,000 lines and introduces three new dependencies, did they have a more productive week? Why do we still confuse visible output with engineering value?
9
537
A surprisingly good interview strategy: When given a system design problem, don't immediately draw boxes. First ask: Who is the user? What is the most important operation? What are the scale assumptions? What must never fail? Then start designing.
2
1
12
646
🚨 An Indian company just had a cybersecurity nightmare. eMudhra β€” a company trusted to secure websites β€” had 8 private keys that were so weak, researchers could recover them almost instantly. One key was reportedly just: 4 Yes. The number 4. These weren't ordinary passwords. They were cryptographic private keys used by Certificate Authorities β€” the infrastructure browsers trust to verify that a website is actually who it claims to be. If exploited, an attacker could potentially create a fake HTTPS certificate for a legitimate website and impersonate it. Google, Mozilla, Apple & Microsoft moved to block the affected certificates. The scary part? The keys were generated in April 2025 and had been trusted for months. eMudhra says: β†’ No data breach occurred β†’ Its Indian DSC/eSign business wasn't affected β†’ The issue was limited to 8 Global TLS intermediate CAs But this raises a much bigger question: How did keys this weak make it through key generation, audits, browser trust programs and into production? Cybersecurity isn't just about having strong algorithms. Your entire security system is only as strong as the weakest key. And this is why cryptography isn't something you "just implement." πŸ”
3
6
876
A system handling 1M requests/day isn't necessarily impressive. A system handling 100K requests/day with: -99.99% availability -low latency -safe deployments -strong observability -and predictable failure behavior can be far harder to build. Scale β‰  engineering complexity.
1
1
44
1,112
The fastest way to improve your system design interviews: Take any popular app. Then ask: β€œWhat breaks first?” Netflix. Uber. YouTube. Instagram. Amazon. You'll learn more from this question than from memorizing 100 diagrams.
2
1
17
820
Frontend engineers: Knowing React isn't enough anymore. You should understand: -Browser rendering -HTTP -Caching -CDNs -WebSockets -Performance -Accessibility -Security -Frontend system design Frameworks change. Fundamentals don't.
2
2
38
994
If you want to get better at system design: Stop memorizing architectures. Instead ask: β†’ What can fail? β†’ What can become a bottleneck? β†’ What happens at 10Γ— traffic? β†’ What happens when a dependency disappears? That's where the real learning happens.
1
2
15
499
Your database isn't slow. Your query is slow. Your query isn't slow. Your access pattern is wrong. Before adding another database, understand how your data is actually being used.
13
485
One underrated interview question: β€œWhat would you NOT build?” Anyone can add components. Senior engineers know what to remove.
1
5
537
If your architecture diagram has: β†’ API Gateway β†’ 7 microservices β†’ Kafka β†’ Redis β†’ Elasticsearch β†’ Kubernetes …and you can't explain why each exists, you don't have a scalable architecture. You have architecture cosplay.
8
2
1
63
1,813