Search
Lessons (40)
- Count, for_each, Functions, and Stable Identities
… Further reading: [for each](https://developer.hashicorp.com/terraform/language/meta-arguments/for each), [functions](https://developer.hashicorp …
- Normalization & Denormalization
… For each one document: 1. The normalized source of truth. 2. The event/transactional outbox or refresh job …
- Service Communication: Sync vs Async
… Services talk to each other the same two ways. ![Synchronous calls wait for an answer; asynchronous messages don …
- Choosing an Architecture
… A bicycle, a van, a bus and a plane are each perfect for some journeys and silly for …
- Sorting Algorithms
… After each pass, the largest remaining item has floated to the end. js function bubbleSort(arr) { for (let …
- Topics, Partitions & Offsets
… keep the latest per key For some topics you only care about the latest value for each key …
- Consumers & Consumer Groups
… partitions each 4 1 partition each ✅ maximum parallelism 6 4 busy, 2 idle ❌ (no partition left for them …
- Data in Microservices: Sagas & the Outbox Pattern
… Design compensations as business actions . Choreography saga (events) Each service listens for events and reacts. No central coordinator …
- S — Single Responsibility Principle
… If the chef also did the accounting, then a new tax law would force a change in the …
- StatefulSets, DaemonSets, Jobs and CronJobs
… stable identity for databases, one pod per node for agents, and run-to-completion tasks. A Deployment is …
- Advanced TypeScript for Frontend
… The status field narrows the type for each branch. Use generics for reusable contracts Generics preserve information instead …
- API Gateway, BFF & Service Discovery
How clients find the right service among dozens, and how services find each other. API gateways, Backends for …
- Vertical Slice Architecture & the Modular Monolith
… Or by what you're shopping for : breakfast aisle, baking aisle, pet aisle. When you want to make …
- I — Interface Segregation Principle
… Backend for Frontend (BFF): a mobile app and a web app each get an API shaped for their …
- N+1 Queries, Loading & Pagination
… serializer reads order.customer for each order. That is 51 database queries for one request. With 100 web …
- What Is Apache Kafka?
… Kept (for days, weeks, or forever) Multiple independent readers Needs one queue per reader ✅ Built in: each group …
- Train Your First Model from Scratch
… 3f}") print(f"prediction for 7km={slope 7 + intercept:.2f} minutes") Understand each step 1. Initialize: start with …
- Kubernetes Cluster Architecture, Simply
… choose a node for each pod Node- Node: pull image and start container Node- API: report pod status …
- Finding Service Boundaries with DDD
… 4. Check the chattiness: if two services call each other for every request, they're probably one context …
- SQL vs NoSQL Databases
Relational tables or flexible documents? Understand how each stores data, the four NoSQL families, ACID vs BASE, and …
- REST vs GraphQL vs gRPC
Three popular ways for services to talk. See how each works, compare them side by side, and learn …
- Time, Consistency and Distributed Transactions
… Use monotonic clocks for local elapsed durations, and versions or logical clocks for the ordering the domain actually …
- Containers at Scale: ECS Deep Dive and EKS
Deploy ECS safely, scale it properly, compare it with EKS, and apply the production patterns for each. ECS …
- Neural Networks and Deep Learning
… how each parameter contributed to the loss. 4. An optimizer updates parameters, often using a form of gradient …
- Message Queues & RabbitMQ
… waiter doesn't stand in the kitchen waiting for each dish. They pin the order ticket on a …
- Kafka vs RabbitMQ & the Kafka Ecosystem
… contracts for events Stores versioned Avro / Protobuf / JSON Schema definitions for each topic and enforces compatibility rules , so …
- Collaborative Document Editing & Real-Time Sync
… 4. What changes for a 1 GB document? Split it into sections/blocks , each with its own CRDT …
- Microkernel (Plugin) Architecture
… The phone maker doesn't rebuild the OS for each new app; apps plug in through a published …
- Deploying & Operating Microservices
… 1), 25 000).unref(); // force-quit if it takes too long }); Key takeaways - Each service has its own …
- Behavioral Patterns II: Chain, Template, Iterator, Mediator, Memento, Visitor
… for await (const chunk of stream) , paginated API helpers. --- 4. Mediator ✈️ Analogy: Planes don't talk to each …
- 10,000 Users Do Not Need 10,000 Database Connections
A practical mental model for connection pools, database pressure, query latency and safe scaling in Node.js applications …
- Frontend Testing Strategy
… each bolt (unit), each engine (integration), and finally a test drive of the whole car (end-to-end …
- Recursion & Backtracking
… Just focus on: "if I had the answer for n-1, how do I get the answer for …
- Python and Math Foundations with Runnable Examples
… Use those same values for future data. Recomputing them using test data or each incoming batch changes the …
- Linked Lists
A chain of nodes where each node points to the next. Learn how they differ from arrays, and …
- Dynamic Programming
… house robber Rob houses in a row for maximum money, but never two neighbours. State: at each house …
- AWS: Start Here
… On AWS, choose a service for each job: Part of the shop Example AWS choice Why it exists …
- Resilient Service Calls: Retries, Breakers and Load Shedding
… Require idempotency before retrying writes; apply exponential backoff with jitter for appropriate transient failures. 3. Use bulkheads to …
- Brokers, Replication & Durability
… In Kafka, every partition has one leader replica and several follower replicas on different brokers. ![Each partition has …
- Event-Driven Architecture
Build systems where components react to events instead of calling each other. Broker vs mediator topologies, the four …