Search
Lessons (40)
- Topics, Partitions & Offsets
How Kafka organises data. Why topics are split into partitions, how message keys decide the partition and keep …
- Running Kafka in Production: The DevOps View
… 6 partitions, 3 copies docker compose exec kafka1 /opt/kafka/bin/kafka-topics.sh \ --bootstrap-server kafka1:9092 …
- Kafka for Backend Services
Use Apache Kafka in real backend code: when to reach for it, designing events, topics and keys, publishing …
- Consumers & Consumer Groups
… This is the committed offset , saved in Kafka's internal consumer offsets topic. If a consumer crashes, its …
- What Is Apache Kafka?
… append an event const producer = kafka.producer(); await producer.connect(); await producer.send({ topic: "orders", messages: [{ key: "customer …
- Delivery Guarantees: At-Most, At-Least & Exactly Once
… async ({ topic, partition, message }) = { const tx = await producer.transaction(); try { await tx.send({ topic: "ledger", messages: [{ key: message …
- Resources, QoS and Scheduling Control
… 1 topologyKey: topology.kubernetes.io/zone whenUnsatisfiable: DoNotSchedule labelSelector: matchLabels: { app: shop-api } This keeps zone counts within …
- Heaps & Priority Queues
… keep a min-heap of size k . The heap's root is the smallest of the top k …
- Stacks & Queues
… top is running)"] direction TB c["c() ⬅ running"] --- b["b()"] --- a["a()"] --- g["global"] end Infinite recursion keeps …
- AWS Messaging: Queues, Topics and Events
… Use deterministic output keys or a provider-supported idempotency key so a retry does not repeat the side …
- Event-Driven Architecture
… Broker vs mediator topologies, the four kinds of event patterns, event design, and the real trade-offs. The …
- Kafka vs RabbitMQ & the Kafka Ecosystem
… direct, topic, fanout, headers exchanges Simple: topic + partition by key Ordering Per queue (with one consumer) Per partition …
- Processes, Services & systemd
… already taken sudo ss -ltnp \ grep :3000 Key takeaways - ps , top / htop and ss -ltnp show what's …
- Dynamic Programming
… add a memo (top-down DP) → optionally convert it to a table (bottom-up). Key takeaways - DP = recursion …
- Brokers, Replication & Durability
… Keep it false for important topics.) The controller and KRaft One broker acts as the controller : it tracks …
- Graphs: BFS & DFS
… stack / recursion) = go deep, backtrack = cycles, components, topological sort. - Always keep a visited set, or cycles will loop …
- Which Pattern Do I Need?
… Microservices and Kafka lessons: Object-level pattern System-level cousin --- --- Observer Pub/Sub, Kafka topics, event-driven architecture …
- Comments & Formatting
… important things at the top, details below](/img/clean-code/newspaper.svg) Vertical order: top-down, like a …
- Backend Languages: Node.js, Go, Python & Rust
… the king of AI/data; FastAPI for modern APIs, Django for full-featured apps. - Rust: top performance with …
- DSA Interview Patterns Cheat Sheet
… all / connected / cycles DFS[DFS] C -- no D{Top K / min / max<br/ repeatedly?} D -- yes H[Heap …
- Troubleshooting Playbook
… MemoryPressure, DiskPressure, PIDPressure kubectl top nodes NotReady nodes usually mean kubelet or container runtime trouble, full disk, or …
- Month 2: Deep Learning, PyTorch and Transformers (Weeks 5-8)
… roof, near top-rated schools", "Downtown condo with gym and rooftop", "Fixer-upper bungalow, needs kitchen remodel"] doc …
- Structural Patterns: How to Connect Objects
… Each topping wraps the drink, adds something (price, flavour), and it's still a coffee. Problem: add responsibilities …
- Month 4: RAG and Knowledge Systems (Weeks 13-16)
… Retrieval metrics : recall@k (did the right chunk appear in the top k?), precision@k , and MRR (how …
- Month 1: Data, Math Intuition and Classic ML (Weeks 1-4)
… 4. Thursday: Load a real estate dataset (Kaggle "House Prices" or your own export). Answer five business questions …
- How Browsers Render a Page
… Read the blueprint (HTML) → know which rooms exist ( DOM ). 2. Read the interior design notes (CSS) → know the …
- Trees & Binary Search Trees
… one person at the top, each person has zero or more people below them, and nobody reports to …
- Message Queues & RabbitMQ
… Routing rule Example --- --- --- Direct Exact routing key match "pdf" → pdf-queue Topic Wildcards: = one word, = zero or more …
- Authentication, Authorization & API Security
… A 401 Unauthorized means "I don't know who you are". A 403 Forbidden means "I know who …
- React Hooks in Practice
… context during render (with Suspense) Key takeaways - Call hooks at the top level, in the same order every …
- Referrals, Cold Outreach and Tracking Applications
… No worries at all if not! If you do not know anyone, engage with an employee's posts …
- Vertical Slice Architecture & the Modular Monolith
… network call. Key takeaways - Vertical slices organise code by feature: one folder per use case, top to bottom …
- Preparing for Technical Interview Rounds
… keep commits clean. Reviewers read the history. Stack-specific questions Review the interview lessons in each topic: - [AWS …
- AI Architect Reference: Decisions, Glossary, Resources and Career
… Zero to Hero, Andrej Karpathy](https://karpathy.ai/zero-to-hero.html) Backprop, tokenizer, GPT from scratch 2 …
- Indexes, EXPLAIN & Query Plans
… A B-tree index keeps selected values ordered so it can seek to a small matching range. The …
- SOLID at a Glance
Five design principles that keep object-oriented and modular code easy to extend, test and change. One picture …
- Clean Architecture in Depth
… can know anything about something in an outer circle, not even its name. 💡 The Clean Code topic has …
- Premiere-Night Video Streaming
Let millions press Play at once by keeping the small 'can I watch?' checks separate from the huge …
- Design a Ride-Sharing Service
… Also keep two kinds of data on separate paths : - Location updates: many per second, small, OK to lose …
- Distributed Coordination: Consensus, Heartbeats and Gossip
… top of a problem that's already solved. Quick recap - 🗳️ Consensus: pick the leader and make key …