Top 10 Concurrency Concepts Every Backend Engineer Should Know (With Resources).
Your backend might work perfectly with a single request. Things get interesting when thousands of requests start modifying the same resources.
1. Race Conditions
Understand how concurrent operations on shared state can produce unexpected results, lost updates and inconsistent data.
Resource: go.dev/doc/articles/race_det…
2. Mutexes & Semaphores
Use mutexes to protect shared resources and semaphores to limit concurrent access.
Resource: docs.oracle.com/javase/tutor…
3. Atomic Operations
Perform indivisible operations using atomic counters, compare-and-swap (CAS) and atomic variables.
Resource: docs.oracle.com/javase/tutor…
4. Optimistic Concurrency Control
Use version numbers or concurrency tokens to detect conflicting updates without holding exclusive locks throughout an operation.
Resource: learn.microsoft.com/en-us/ef…
5. Pessimistic Concurrency Control
Acquire locks before modifying shared resources to prevent conflicting operations.
Resource: postgresql.org/docs/current/…
6. Deadlocks
Understand circular dependencies, lock ordering, deadlock detection and recovery mechanisms.
Resource: postgresql.org/docs/current/…
7. Transaction Isolation Levels
Understand Read Uncommitted, Read Committed, Repeatable Read and Serializable isolation levels.
Resource: postgresql.org/docs/current/…
8. Multiversion Concurrency Control (MVCC)
Maintain multiple versions of data to allow concurrent reads and writes while preserving transactional consistency.
Resource: postgresql.org/docs/current/…
9. Distributed Locking
Coordinate access to shared resources across multiple application instances. Understand lock expiration, fencing tokens and failure scenarios.
Resource: redis.io/docs/latest/develop…
10. Thread Pools & Worker Pools
Manage concurrent task execution efficiently without exhausting CPU, memory or database connections.
Resource: docs.oracle.com/javase/tutor…
Bonus concepts worth learning:
• Lock-free data structures
• Memory barriers
• Thread starvation
• Context switching
• Async I/O
• Thread safety
• False sharing
• Concurrent collections
Imagine two customers purchasing the last available product at exactly the same time.
Both requests read the inventory as 1.
Both purchases succeed.
How would your backend prevent this?
Concurrency isn’t just a programming concept. It’s a fundamental part of building reliable backend systems.
(Bookmark it)
deepakkumar retweeted
thank me later and save this if you want to stay relevant in this job market
hiringrightnow.com
deepakkumar retweeted
people who love learning, thank me later.
freelearninglist.org
deepakkumar retweeted
The biggest lesson?
Knowing Spring Boot isn't enough.
You need to understand databases, APIs, SQL, pagination, and how backend systems actually work.
Stop preparing only to solve LeetCode problems.
Start preparing to become an engineer.
deepakkumar retweeted
A young investor asked Charlie Munger for the 1 book that made him rich. Munger handed him "Guns, Germs, and Steel," and the investor complained it had 0 stock tips. Munger said: "That's why it's worth $1 billion and your newsletter is worth $19.99."
In the video below, Munger explains why the books that shaped him had almost nothing to do with investing.
The investor was 26 and ran a stock newsletter with 4,000 subscribers. He caught Munger after a talk in Pasadena in 2010.
"Just tell me the one book," he said. "The one that made you rich."
Munger reached into his bag. He handed over a 480-page book about the history of civilizations.
The investor flipped through it on the spot. He found wheat, horses and smallpox. He found no stocks.
"There's nothing in here about markets," he said.
Munger nodded. "That's why it's worth $1 billion," he said. "And your newsletter is worth $19.99."
The investor went home angry. He read the book anyway, out of spite. It took him 3 weeks.
A year later, he shut down the newsletter. He said he finally understood why some companies win and others don't.
He mailed the book back to Munger with a note: "Chapter 4 cost me my newsletter, and saved my career."
Would you rather read a book with 10 sto
deepakkumar retweeted
DATA STRUCTURES & ALGORITHMS ROADMAP
FOUNDATIONS
→ understand what data structures and algorithms are
→ learn time and space complexity (big o notation)
→ understand how to analyze algorithm efficiency
→ set up your programming environment (python, java, c++, or javascript)
MATHEMATICAL BASICS
→ learn logarithms, exponents, and modular arithmetic
→ understand combinatorics and probability basics
→ study number theory concepts such as prime numbers, gcd, and lcm
→ apply mathematical thinking to algorithmic problems
ARRAYS
→ understand array fundamentals and operations
→ practice traversal, searching, insertion, and deletion
→ master two-pointer techniques
→ solve sliding-window and subarray problems
STRINGS
→ learn string manipulation techniques
→ solve pattern-matching problems
→ understand hashing with strings
→ practice anagrams, palindromes, and substring problems
LINKED LISTS
→ learn singly, doubly, and circular linked lists
→ practice insertion, deletion, and traversal
→ solve reversal and cycle-detection problems
→ use linked lists in real-world applications
STACKS
→ understand stack operations (push, pop, peek)
→ solve balanced-parentheses problems
→ use stacks for expression evaluation
→ practice monotonic-stack problems
QUEUES
→ understand queue concepts and fifo processing
→ learn circular queues, dequeues, and priority queues
→ solve problems using bfs and sliding windows
→ explore real-world scheduling applications
TREES
→ understand binary trees and binary search trees
→ learn tree traversal (inorder, preorder, postorder)
→ solve problems involving height, diameter, and lca
→ explore avl trees, segment trees, and tries
GRAPHS
→ understand graph representations (adjacency list and matrix)
→ master bfs, dfs, and graph traversal
→ solve shortest-path problems
→ learn dijkstra, bellman-ford, floyd-warshall, and mst algorithms
→ model real-world networks and dependencies
HASHING
→ understand hash functions and hash tables
→ solve problems using hash maps and hash sets
→ handle collisions and hashing strategies
→ apply hashing to frequency, duplicate, and lookup problems
HEAPS
→ understand min heaps and max heaps
→ implement priority queues
→ solve top-k and kth-element problems
→ use heaps in scheduling and graph algorithms
SORTING & SEARCHING
→ learn bubble, selection, insertion, merge, quick, heap, counting, and radix sort
→ understand sorting stability and complexity
→ master binary search and its variations
→ solve searching problems on sorted and rotated arrays
DYNAMIC PROGRAMMING
→ understand overlapping subproblems and optimal substructure
→ learn memoization and tabulation
→ solve classic dp problems such as knapsack, lcs, lis, and coin change
→ identify when dynamic programming is the right approach
GREEDY ALGORITHMS
→ understand greedy strategies and when to use them
→ solve activity selection and job scheduling problems
→ work with interval and huffman coding problems
→ compare greedy solutions with dynamic programming approaches
ADVANCED TOPICS
→ master backtracking with problems like n-queens and sudoku
→ understand divide and conquer
→ learn bit manipulation
→ explore tries, suffix trees, and advanced string algorithms
→ study segment trees and fenwick trees
PROBLEM-SOLVING PRACTICE
→ solve problems on leetcode, hackerrank, and codeforces
→ start with easy problems before progressing to medium and hard
→ practice topic-specific problem sets
→ participate in coding contests and challenges
REAL-WORLD APPLICATIONS
→ apply dsa concepts in real software projects
→ use efficient algorithms in databases and system design
→ optimize data processing and analytics workloads
→ build hands-on projects that use dsa
INTERVIEW PREPARATION
→ revise important data structures and algorithmic patterns
→ practice common technical interview problems
→ solve problems under time constraints
→ learn to explain your approach clearly
→ participate in mock interviews and peer discussions
KEEP LEARNING
→ solve new and challenging problems regularly
→ study advanced algorithms and research papers
→ explore competitive programming
→ stay updated with new techniques and approaches
→ teach and share your knowledge
POPULAR PLATFORMS
→ leetcode
→ hackerrank
→ codeforces
→ atcoder
→ geeksforgeeks
POPULAR LANGUAGES
→ python
→ java
→ c++
→ javascript
→ go
→ rust
KEY SKILLS YOU'LL BUILD
→ analytical and logical thinking
→ problem decomposition
→ pattern recognition
→ algorithm design and optimization
→ improved coding skills
→ confidence for technical interviews
USEFUL RESOURCES
→ online courses
→ dsa books
→ coding practice platforms
→ open-source projects
→ coding communities
→ technical blogs and videos
COMMON APPLICATIONS
→ search engines
→ databases
→ operating systems
→ network routing
→ machine learning
→ real-time systems
→ gaming and simulations
DSA EBOOK
codewithdhanian.gumroad.com/…
I don’t typically do this, but, for the sake of all that is holy, if you truly, truly want to transform your life, read these seven pages. borrow time from the dead if you have to. take a day off from life if you have to. let not the style of english or sentence length put you off. resist with all your might the inertia of having to re-read to understand. resist with all your might abandoning midway. if there was ever a time you finally got serious, now is golden opportunity par excellence. anything you don’t understand just upload the page onto ChatGPT with prompt, “explain each line in layman terms.” not one excuse is allowable. come back to this multiple times if you have to. written by william james, the father of american psychology.
deepakkumar retweeted
Top 10 resources to learn databases (practical for working devs):
1) Database Internals (Alex Petrov). How B-trees, WAL, compaction, and buffer pools actually work. Helps when p99 blows up.
2) Designing Data-Intensive Applications (Kleppmann). Replication, partitioning, consistency models. Good framing for tech choices in design reviews.
3) PostgreSQL docs. Especially EXPLAIN, indexes, VACUUM/autovacuum, isolation levels. The fastest way to stop guessing.
4) Use The Index, Luke!. Concrete index patterns, what makes an index usable, how ORDER BY/LIMIT changes plans.
5) High Performance MySQL (Schwartz et al.). Query patterns, InnoDB internals, replication gotchas. Still relevant in MySQL-heavy shops.
6) CMU 15-445 (Database Systems). Free lectures + projects. Forces you to implement a storage engine and learn why everything is tradeoffs.
7) Martin Kleppmann’s blog + talks. Clear explanations of logs, streams, and distributed consistency without fluff.
8) Netflix TechBlog posts on data (Cassandra, Dynamo-style patterns, migrations). Real production constraints: multi-region, failure modes, cost.
9) Practice project: build a toy DB. Implement an append-only log + memtable + SSTables, then add compaction and Bloom filters. You’ll stop treating LSM trees as magic.
10) Practice project: run a slow query clinic. Load a 5-20GB dataset (ex: NYC taxi), write 10 reports, then fix them with EXPLAIN, indexes, and schema changes. Track p95 before/after.
deepakkumar retweeted
I treat system design like a checklist.
Here’s my go-to mental TODO list when building systems:
Fundamentals
- What are the read patterns?
- What are the write patterns?
- Who owns the source of truth?
- Is consistency or availability more critical?
- Single writer or multiple writers?
Architecture
- Synchronous or async?
- Do I need a queue, or is a cron job enough?
- Can I separate the compute from storage?
- Stateless or stateful services?
- Contracts versioned?
Reliability
- What happens when this fails?
- Where’s the retry logic, and is it idempotent?
- Are we alerting to symptoms or root causes?
- Timeouts configured?
Scaling
- How do reads scale?
- How do writes scale?
- Will this design hold up at 10x traffic?
- What’s the hot path, and how do we optimize it?
Observability
- Do we log what we need to debug in production?
- Can we trace a request across services?
- What metrics define “healthy”?
- Debuggable without redeploy?
I don’t always follow it linearly, but if something breaks or feels off, this list helps me pinpoint what I may have overlooked.
Add something for the next engineer 👇
deepakkumar retweeted
This is the most DANGEROUS FREE agentic engineering curriculum I’ve seen so far
163 lessons. 16 phases. You write the loop yourself before any framework
From raw HTTP calls → tool use → memory → MCP → multi-agent → production harness
01 Your agent dev environment
github.com/Ramakm/agentic-ai…
02 Calling an LLM over raw HTTP
github.com/Ramakm/agentic-ai…
03 Streaming responses with SSE
github.com/Ramakm/agentic-ai…
04 What an LLM actually returns
github.com/Ramakm/agentic-ai…
05 Tokens and the context window
github.com/Ramakm/agentic-ai…
06 Structured output & JSON mode
github.com/Ramakm/agentic-ai…
07 Tool schemas from first principles
github.com/Ramakm/agentic-ai…
08 Writing a tool dispatcher
github.com/Ramakm/agentic-ai…
09 Parallel tool calls
github.com/Ramakm/agentic-ai…
10 The agent loop in 120 lines
github.com/Ramakm/agentic-ai…
11 ReAct: reason, act, observe
github.com/Ramakm/agentic-ai…
12 Stop conditions & max steps
github.com/Ramakm/agentic-ai…
13 Scratchpads and thought traces
github.com/Ramakm/agentic-ai…
14 Context is the program
github.com/Ramakm/agentic-ai…
15 Embeddings from scratch
github.com/Ramakm/agentic-ai…
16 A vector store in 80 lines
github.com/Ramakm/agentic-ai…
17 Episodic memory
github.com/Ramakm/agentic-ai…
18 Naive RAG and where it breaks
github.com/Ramakm/agentic-ai…
19 Retrieval as a tool
github.com/Ramakm/agentic-ai…
20 Self-correcting RAG
github.com/Ramakm/agentic-ai…
21 Plan-and-execute
github.com/Ramakm/agentic-ai…
22 Reflection & self-critique
github.com/Ramakm/agentic-ai…
23 Why MCP exists
github.com/Ramakm/agentic-ai…
24 Build an MCP server from scratch
github.com/Ramakm/agentic-ai…
25 Build an MCP client
github.com/Ramakm/agentic-ai…
26 Orchestrator–worker
github.com/Ramakm/agentic-ai…
27 Handoffs between agents
github.com/Ramakm/agentic-ai…
28 Agent-to-agent (A2A) protocol
github.com/Ramakm/agentic-ai…
29 Anatomy of a coding agent
github.com/Ramakm/agentic-ai…
30 Skills and SKILL.md
github.com/Ramakm/agentic-ai…
31 Browser agents
github.com/Ramakm/agentic-ai…
32 Build a mini coding agent
github.com/Ramakm/agentic-ai…
33 Why agent evals are hard
github.com/Ramakm/agentic-ai…
34 Trajectory evaluation
github.com/Ramakm/agentic-ai…
35 LLM-as-judge, carefully
github.com/Ramakm/agentic-ai…
36 The agent threat model
github.com/Ramakm/agentic-ai…
37 Prompt injection, direct & indirect
github.com/Ramakm/agentic-ai…
38 Least-privilege tools
github.com/Ramakm/agentic-ai…
39 Durable execution
github.com/Ramakm/agentic-ai…
40 Cost control at scale
github.com/Ramakm/agentic-ai…
41 Streaming UIs for agents
github.com/Ramakm/agentic-ai…
42 Approvals & undo
github.com/Ramakm/agentic-ai…
43 The core loop & tool registry
github.com/Ramakm/agentic-ai…
44 Subagents & delegation
github.com/Ramakm/agentic-ai…
45 Ship it: CLI + docs
github.com/Ramakm/agentic-ai…
Every lesson: The Problem → Build It from scratch → Use It in real tools → Ship an artifact
Works with local models via Ollama. No framework required at the start
Full course: github.com/Ramakm/agentic-ai…
Site: agentic-ai-from-scratch.verc…
You either build the loop yourself now or keep watching agent demos for another year
Save this ↓
deepakkumar retweeted
Confidence shows up after you do the scary thing a few times, almost never before.
deepakkumar retweeted
Nobody talks enough about these skills, but they separate average developers from great engineers:
• Reading logs
• Understanding Linux
• SQL query optimization
• Networking
• Git internals
• Memory management
• Debugging
• Reading source code
• Understanding system failures
You don't need another framework.
You need stronger fundamentals.























































