Search

Lessons (17)

  • Service Communication: Sync vs Async

    … e.g. 'is this coupon valid?'" Sync[Synchronous: REST / gRPC] Q1 -- no Q2{Is it a notification<br …

  • Brokers, Replication & Durability

    … Brokers, leaders and followers, in-sync replicas, min.insync.replicas, leader election and KRaft, drawn step by step …

  • Design a File Storage Service

    Upload bytes directly to object storage while the API owns durable metadata, authorization, sharing and synchronization. ![File storage …

  • React Hooks in Practice

    … Use it to synchronise with things outside React : subscriptions, timers, browser APIs, non-React widgets. jsx useEffect(() = { // setup …

  • Batch vs Stream and Data Modeling

    … read path is costly Duplicates must stay in sync Streams need an ordering key, idempotency, retention and DLQ …

  • Kafka Producers

    … fetch + replicate L-- P: ✅ ack (in-sync replicas have it) acks Producer waits for Speed Can lose data …

  • CQRS & Event Sourcing

    … a write model for commands, a read model for queries, synced by events](/img/microservices/cqrs.svg) mermaid …

  • Helm, kubectl Cheat Sheet & Best Practices

    … in the cluster ( Argo CD or Flux ) continuously syncs the cluster to match. mermaid flowchart LR Dev[🧑 …

  • JavaScript Essentials: Event Loop, Closures & this

    … click.</summary 1, 4, 3, 2 1. "1" : synchronous, runs immediately. 2. setTimeout : the callback goes to the …

  • Message Queues & RabbitMQ

    … Why use a queue? mermaid flowchart LR subgraph Sync["❌ Synchronous: user waits for everything"] direction LR U1[Signup …

  • ConfigMaps, Secrets & Storage

    … values live in a proper vault and are synced in Or Sealed Secrets / SOPS Encrypted files that are …

  • Why Kubernetes?

    … someone who makes sure every instrument starts on time, replaces a sick violinist, and keeps everyone in sync …

  • What Is Apache Kafka?

    … API] -- K B[Billing] -- K K -- DB[(DB sync)] K -- SE[Search index] K -- AN[Analytics] K -- MON …

  • React Fundamentals

    … jsx // ❌ Duplicated state that can get out of sync const [items, setItems] = useState([]); const [total, setTotal] = useState(0 …

  • Monolith vs Microservices

    … a database, or call each other in long synchronous chains. You pay the full microservices cost and get …

  • TypeScript Essentials

    … never out of sync const user = UserSchema.parse(await response.json()); // throws on bad data tsconfig essentials json …

  • What Is Software Architecture?

    … the whole system shaped? Monolith or microservices, layers, sync vs async, which database, where the business logic lives …