
Socialist, Ambederkartite.
U.p. bhadohi_Bangalore
Joined March 2012
- Tweets5.2K
- Following5K
- Followers324
- Likes1.5K
OM retweeted
जिसकी नीयत साफ होती है उसकी किस्मत को ईश्वर स्वयं संवारता है क्योंकि चालाकी इंसानों से चल सकती है परमात्मा से नहीं।
#achchibaatein
OM retweeted
As a Backend Engineer (even a fresher), please learn: 🍀
Build one API usinfg all of these thats your project.
OM retweeted
Meta – 85% rounds are (DSA + System Design + Java)
Google – 80% (DSA + System Design + Java)
Amazon – 70% (DSA + System Design + Java)
Microsoft – 75% (DSA + System Design + Java)
After giving multiple interviews, one thing became clear: If you want to clear any Software Engineer interviews, the formula is simple: Java Backend, System Design, and DSA
Here are 24 interview questions/topics that repeatedly showed up in my prep and interview journey.
𝗗𝗦𝗔
1. Implement LRU/LFU Cache
2. Find Median from Data Stream
3. Word Ladder problem
4. Merge K Sorted Lists
5. Detect Cycle in a Directed Graph
6. Maximum Subarray Sum
7. Kth Largest Element in a Stream
8. Task Scheduler/Priority-based scheduling
𝗝𝗮𝘃𝗮 𝗕𝗮𝗰𝗸𝗲𝗻𝗱
9. HashMap vs ConcurrentHashMap vs Hashtable
10. JVM memory model: Heap, Stack, GC
11. ExecutorService, Callable, and Future
12. How Spring Boot Dependency Injection works
13. REST vs Kafka/RabbitMQ in Microservices
14. Transactions in Spring Boot
15. SQL vs NoSQL
16. Designing scalable REST APIs
𝗦𝘆𝘀𝘁𝗲𝗺 𝗗𝗲𝘀𝗶𝗴𝗻
17. Design a Chat Application
18. Design a URL Shortener
19. Design a Notification System
20. Scale a Video Streaming platform
21. Design a Payment System
22. Design an API Rate Limiter
23. Design an E-commerce Checkout System
24. Design a Ride-Hailing App
𝗞𝗲𝗲𝗽𝗶𝗻𝗴 𝘁𝗵𝗶𝘀 𝗶𝗻 𝗺𝗶𝗻𝗱, 𝗜 𝘄𝗲𝗻𝘁 𝗱𝗲𝗲𝗽 𝗮𝗻𝗱 𝗱𝗼𝗰𝘂𝗺𝗲𝗻𝘁𝗲𝗱 𝗲𝘃𝗲𝗿𝘆𝘁𝗵𝗶𝗻𝗴 𝗶𝗻𝘁𝗼 𝗮 𝗝𝗮𝘃𝗮 𝗕𝗮𝗰𝗸𝗲𝗻𝗱 𝗗𝗲𝘃𝗲𝗹𝗼𝗽𝗲𝗿 𝗚𝘂𝗶𝗱𝗲.
OM retweeted
System Design in 12 lines:
Slow reads → Add a cache
Write spikes → Buffer with a queue
Too much traffic → Add a load balancer
Read-heavy DB → Add read replicas
Write-heavy DB → Shard the data
Slow queries → Add indexes
Slow file loads → Object storage + CDN
Temporary failures → Retry with backoff
Too many requests → Rate limiting
One service failing → Circuit breaker
Duplicate requests → Idempotency keys
Can’t see what broke → Logs, metrics, tracing
Read this before your next System Design interview.
OM retweeted
𝗜𝗙 𝗬𝗢𝗨 𝗪𝗔𝗡𝗧 𝗧𝗢 𝗨𝗡𝗗𝗘𝗥𝗦𝗧𝗔𝗡𝗗 𝗔𝗜 𝗔𝗚𝗘𝗡𝗧𝗦, 𝗟𝗘𝗔𝗥𝗡 𝗧𝗛𝗘𝗦𝗘 𝟵 𝗧𝗘𝗥𝗠𝗦
AI agents are becoming more than just chatbots.
They can use tools, remember context, retrieve information, work with other agents, and execute multi-step tasks.
But first, you need to understand the language behind them.
𝗛𝗘𝗥𝗘 𝗔𝗥𝗘 𝟵 𝗜𝗠𝗣𝗢𝗥𝗧𝗔𝗡𝗧 𝗧𝗘𝗥𝗠𝗦:
01 — 𝗛𝗔𝗥𝗡𝗘𝗦𝗦
The loop that turns an LLM into an agent.
Context → LLM → Tool Call → Result → Context
It connects the model with skills, memory, prompts, APIs, browsers and other tools.
02 — 𝗠𝗘𝗠𝗢𝗥𝗬 & 𝗦𝗧𝗔𝗧𝗘
Memory helps an agent remember information across tasks.
→ Short-term memory
→ Long-term memory
→ Current state
→ Open tasks
03 — 𝗥𝗔𝗚
Retrieval-Augmented Generation helps an agent find relevant information before generating an answer.
Question → Search → Relevant Data → LLM → Answer
This helps ground responses in external knowledge.
04 — 𝗠𝗖𝗣
Model Context Protocol provides a standardized way for AI systems to connect with tools and data.
Think of it as a common connection layer between AI and external capabilities.
05 — 𝗦𝗞𝗜𝗟𝗟𝗦
Reusable instructions, knowledge, scripts, and workflows that an agent can load when needed.
This makes agents more capable without putting everything into one massive prompt.
06 — 𝗚𝗨𝗔𝗥𝗗𝗥𝗔𝗜𝗟𝗦
Rules that define what an agent can and cannot do.
→ Permissions
→ Sandboxing
→ Human approval
→ Action logging
The goal is useful autonomy without uncontrolled actions.
07 — 𝗘𝗩𝗔𝗟𝗦
Evaluation systems measure whether an agent actually performs well.
Test before launch → Measure outcomes → Improve → Monitor
Good agents need more than impressive demos.
08 — 𝗔𝟮𝗔
Agent-to-Agent communication allows agents to communicate, exchange tasks, and share results.
Different agents can specialize in different jobs.
09 — 𝗠𝗨𝗟𝗧𝗜-𝗔𝗚𝗘𝗡𝗧 𝗦𝗬𝗦𝗧𝗘𝗠𝗦
One orchestrator can coordinate multiple specialized agents.
For example:
Researcher → Coder → Reviewer → Final Result
𝗧𝗛𝗘 𝗕𝗜𝗚 𝗣𝗜𝗖𝗧𝗨𝗥𝗘:
LLM + Memory + RAG + Tools + Skills + Guardrails + Evals + Agent Communication
That combination is what turns a basic AI model into a more capable agentic system.
Save this cheat sheet if you're learning AI agents.
Follow @AamirAnsar94694 for more AI, tools, automation and tech insights.
#AI #AIAgents #AgenticAI #ArtificialIntelligence #RAG #MCP #AITools #GenerativeAI #Tech
OM retweeted
खुद की औकात होगी तो दुनिया कद्र करेगी
किसी के दाएं बाएं खड़े होने से
किरदार ऊंचे नहीं होते...
OM retweeted
SDE-1 to SDE-3: a year-by-year plan:
- Year 1: learn the codebase, ship small, ask questions
- Year 2: own a feature, write tests, debug production
- Year 3: learn system design and database tuning
- Year 4: lead a project, write design docs, mentor
- Year 5: work across teams, own reliability
- Year 6+: set direction, grow other senior engineers
Where are you in this list?
OM retweeted
What system design rounds expect at each salary band in India:
₹20–35 LPA (SDE-2)
↣ design one service end to end
↣ APIs, schema, indexes, caching
↣ "Design a URL shortener"
₹35–60 LPA (Senior)
↣ scale it to 10x without falling over
↣ sharding, queues, replication, real numbers
↣ "Design WhatsApp message delivery"
₹60 LPA–1 Cr (Senior+ / Staff)
↣ trade-offs across many services
↣ consistency, migrations, cost, multi-region
↣ "Move payments to a new database with zero downtime"
₹1 Cr+ (Staff / Principal)
↣ what to build, what to cut, who owns what
↣ 5 teams shipping without breaking each other
↣ "Our cloud bill is ₹2 Cr a month. Cut it in half."
Every jump in pay is a jump from "build this" to "decide this."
OM retweeted
Most backend engineers learn in fragments
A tutorial here,
A Stack Overflow answer there.
I spent 10 weeks building the complete picture.
APIs → Caching → Queues → Load Balancing → Microservices → DB Scaling → API Gateway → Monitoring → Security → CI/CD
10 weeks, 10 articles, One foundation.
Full series + all Medium articles in first reply 👇
OM retweeted
Google vs Microsoft vs Amazon DSA prep isn't the same.
Google
→ Algorithms + optimization + scalability
Microsoft
→ Medium DSA + clean code + decomposition
Amazon
→ Trees + graphs + heaps + DP + Leadership Principles
Same SDE title.
Very different interview expectations.
OM retweeted
Deloitte Most Asked JAVA DSA Questions in Interview
LeetCode Problem No:
1 - Two Sum
2 - Add Two Numbers
9 - Palindrome Number
19 - Remove Nth Node From End
20 - Valid Parentheses
21 - Merge Two sorted lists
22 - Generate Parentheses
23 - Merge k Sorted Lists
24 - Swap Nodes in Pairs
25 - Reverse Nodes in k-Group
26 - Remove Duplicates from Sorted Array
27 - Remove Element
28 - Implement strStr()
33 - Search in Rotated Sorted Array
35 - Search Insert Position
36 - Valid Sudoku
42 - Trapping Rain Water
46 - Permutation (all permutations)
47 - Permutations II (with duplicates)
48 - Rotate Image
50 - Pow(x, n)
53 - Maximum Subarray
54 - Spiral Matrix
66 - Plus One
70 - Climbing Stairs
73 - Set Matrix Zeroes
74 - Search a 2D matrix
76 - Minimum Window Substring
77 - Combinations (n choose k)
79 - Word Search
84 - Largest Rectangle in Histogram
88 - Merge Sorted Array
103 - Binary Tree Zigzag Level Order
104 - Maximum Depth of Binary Tree
105 - Construct Binary Tree from Preorder and Inorder
106 - Construct Binary Tree from Inorder and Postorder
108 - Convert Sorted Array to BST
112 - Path Sum
113 - Path Sum II
121 - Best time to buy and sell stock
124 - Binary Tree Maximum Path Sum
125 - Valid Palindrome
127 - Word Ladder (Length)
136 - Single Number
142 - Linked List Cycle II (find start)
150 - Evaluate Reverse Polish Notation
152 - Maximum Product Subarray
155 - Min Stack
160 - Intersection of Two Linked Lists
162 - Find Peak Element
173 - Binary Search Tree Iterator
189 - Rotate Array
198 - House Robber
206 - Reverse Linked List
210 - Topological Sort / Course Schedule (II)
213 - House Robber II
215 - Kth Largest Element in an Array
217 - Contains Duplicate
225 - Implement Stack using Queues
231 - Power of Two
232 - Implement Queue using Stacks
235 - Lowest Common Ancestor of BST
236 - Lowest Common Ancestor of Binary Tree
268 - Missing Number
283 - Move Zeroes
297 - Serialize and Deserialize Binary Tree
344 - Reverse String
347 - Top K Frequent Elements
349 - Intersection of Two Arrays
509 - Fibonacci Number
973 - K Closest Points to Origin
1464 - Maximum Product of Two Elements
OM retweeted
Backend Interview Questions:
1. Explain the architecture of a backend application you have worked on.
2. What is the difference between REST, SOAP, and GraphQL APIs?
3. How do you design a scalable REST API?
4. What are HTTP methods, and when would you use GET, POST, PUT, PATCH, and DELETE?
5. What are HTTP status codes, and which ones do you commonly use in backend development?
6. How do you handle authentication and authorization in a backend application?
7. What is the difference between session-based authentication and JWT authentication?
8. How do you securely store passwords in a database?
9. What is middleware, and how is it used in backend applications?
10. How do you handle errors and exceptions in a backend service?
11. What is the difference between synchronous and asynchronous processing?
12. How do you improve the performance of a slow API?
13. What is database indexing, and when should you use it?
14. What is the difference between SQL and NoSQL databases?
15. How do you design database schemas for scalable applications?
16. What are database transactions, and why are ACID properties important?
17. What is connection pooling, and why is it important?
18. How do you prevent SQL injection and other common backend security vulnerabilities?
19. What is caching, and where would you use Redis in a backend system?
20. What is a message queue, and when would you use Kafka, RabbitMQ, or another queue?
21. How do you design a backend system that can handle millions of requests?
22. What is horizontal scaling vs. vertical scaling?
23. What are microservices, and when would you choose them over a monolithic architecture?
24. How do microservices communicate with each other?
25. How do you handle API versioning without breaking existing clients?
26. How do you implement logging, monitoring, and observability for backend services?
27. How do you test backend applications? Explain unit, integration, and end-to-end testing.
28. How do you handle background jobs and scheduled tasks in a backend application?
29. Write a backend API that performs CRUD operations and explain your implementation.
30. If a production API suddenly becomes slow or starts returning errors, how would you troubleshoot it?
Note: These are not final questions, every interview is different, and it's based on the position. Please be prepared accordingly. Thank you!!
Grab the Backend Engineering ebook: codewithdhanian.gumroad.com/…
OM retweeted
CAP Theorem in one slide:
You can pick two.
Your manager will still ask for all three — right after the network partition hits production.
OM retweeted
Command vs Event vs Message:
These three terms appear everywhere in event-driven architecture, Kafka, microservices, and distributed systems.
And they are often used interchangeably.
They shouldn't be.
Quick memory trick:
Command = Please do this
Event = This already happened
Message = Information being transported
---
Command:
A command is an instruction to perform an action.
It is usually directed at a specific consumer.
Customer Service
↓
CreateOrder
↓
Order Service
↓
Create the order
Example:
{
"type": "CreateOrder",
"orderId": "ORD-101",
"customerId": "C-55"
}
The important part:
The sender expects someone to perform an action.
Commands can be rejected.
For example:
CreateOrder
↓
Order Service
↓
Insufficient inventory
👉 Think: Do this.
---
Event:
An event represents something that already happened.
Order Service
↓
OrderCreated
↓
Kafka
↙ ↓ ↘
Email Billing Analytics
Example:
{
"type": "OrderCreated",
"orderId": "ORD-101",
"timestamp": "2026-08-31T09:00:00Z"
}
The sender isn't saying:
Create an order.
It's saying:
An order was created.
Multiple consumers can independently react.
👉 Think: This happened.
---
Message:
Message is the broader concept.
A message is data transported from one component to another.
It can represent:
Command
Event
Request
Response
Notification
For example:
Producer
↓
Message
↓
Broker
↓
Consumer
Kafka records, queue messages, and many asynchronous payloads are all commonly referred to as messages.
👉 Think: Information being delivered.
---
The easiest real-world example:
Imagine an e-commerce system.
Command:
CancelOrder
Meaning:
Please cancel order #101.
Directed toward the service responsible for cancellation.
---
Event:
OrderCancelled
Meaning:
Order #101 has been cancelled.
Now multiple services can react:
OrderCancelled
↓
Refund Email Analytics
---
Message:
The actual payload transported through your messaging infrastructure:
Kafka Record
↓
{
type: "OrderCancelled",
orderId: "101"
}
That's a message carrying an event.
---
A useful architecture
COMMAND
↓
Order API
↓
Order Service
↓
EVENT: OrderCreated
│
Kafka
┌────┼────┐
↓ ↓ ↓
Billing Email Analytics
Here:
Command → tells the Order Service what to do.
Event → tells other services what happened.
Message → the transportable piece of information flowing between components.
---
Biggest misconception:
Every Kafka message is an event.
No.
Kafka is a messaging/event-streaming platform.
A Kafka record can carry a:
Command
Event
Notification
Other application-defined payload
The meaning comes from the contract, not simply from the broker.
---
Another misconception
Events are requests.
Usually no.
A command says:
Do X.
An event says:
X happened.
Compare:
CreatePayment → Command
PaymentCreated → Event
That distinction becomes extremely important when designing microservices.
---
When should you use what?
Command
Use when:
- You want an action performed
- There is an intended handler
- The operation can succeed or fail
- You need explicit intent
👉 Imperative
---
Event
Use when:
- Something has already happened
- Multiple consumers may react
- You want loose coupling
- Consumers shouldn't need to know the producer's workflow
👉 Declarative fact
---
Message:
Use as the generic term when:
- Data is being transported between components
- You're discussing queues/brokers
- The payload could represent different interaction types
👉 Transport/container concept
---
One sentence to remember forever:
Command → Do this.
Event → This happened.
Message → Here's some information.
And this distinction becomes especially powerful in distributed systems:
Commands express intent. Events represent facts. Messages carry information
OM retweeted
Batch vs Stream Processing
Some data can wait.
Some data needs to be processed the moment it arrives.
That’s the difference between Batch Processing and Stream Processing.
Batch Processing
Data is collected over time and processed together.
Think:
• Daily sales reports
• Monthly payroll
• Nightly ETL jobs
• Historical analytics
• Large file processing
Flow:
Data → Collect → Wait → Process
Tools: Spark, Airflow, dbt.
Stream Processing
Data is processed continuously as events arrive.
Think:
• Fraud detection
• Live dashboards
• IoT monitoring
• Recommendation systems
• Real-time alerts
Flow:
Event → Process → Result → Next Event
Tools: Kafka, Flink, Spark Structured Streaming.
Quick rule:
Batch → Process later
Stream → Process continuously
Batch → Higher latency
Stream → Lower latency
Batch → Simpler workloads
Stream → Real-time workloads
Knowing when to use each is a fundamental Data Engineering skill.
OM retweeted
Database stuff I’d study if I wanted to understand scaling deeply:
B+ Trees
LSM Trees
Write-Ahead Logging
Two-Phase Commit
Three-Phase Commit
Read Replicas
Leader-Follower Replication
Partitioning
Query Caching
Secondary Indexes
Vector Indexes (FAISS, HNSW)
Distributed Joins
Materialized Views
Event Sourcing
Change Data Capture





























