Skip to main content

15 docs tagged with "distributed-systems"

View all tags

Advanced Consensus and BFT

Crash-fault vs Byzantine-fault consensus, when BFT is needed, and the operational tradeoffs of protocols such as PBFT and HotStuff.

Architecture Fundamentals

Core principles of distributed systems architecture including CAP theorem, consistency models, availability, partition tolerance, and key trade-offs every engineer must understand.

CAP Theorem: A Senior Engineer's Deep Dive

A comprehensive guide to the CAP theorem in distributed systems, covering network partitions, consistency models, microservice-level trade-offs, interview questions, and real-world implementations.

Database Sharding & Partitioning

A complete guide to horizontal scaling — sharding strategies, consistent hashing, cross-shard complexities, rebalancing, distributed ID generation, and real-world database comparisons.

Distributed Systems

Core distributed systems concepts including consensus algorithms, leader election, vector clocks, distributed transactions, fault tolerance, and the fallacies of distributed computing.

Kafka Broker — Complete Guide

A complete guide to Kafka brokers — what they are, how storage works, partition leadership, replication, ISR, KRaft vs ZooKeeper, log compaction, performance internals, and production monitoring. Beginner through senior depth.

Kafka Exactly-Once Semantics (EOS)

A complete guide to Kafka exactly-once semantics — delivery guarantees, idempotent producer, transactions, read_committed consumers, Kafka Streams EOS, zombie producer fencing, two-phase commit internals, and production patterns. Beginner through senior depth.

KRaft vs ZooKeeper: Kafka Metadata Architecture

A comprehensive guide comparing Apache Kafka's legacy ZooKeeper architecture with the modern KRaft (Kafka Raft) metadata mode — covering internal mechanics, failure scenarios, migration strategies, and production deep dives for senior engineers.

Raft Consensus Algorithm

A comprehensive guide to the Raft Consensus Algorithm — covering leader election, log replication, safety guarantees, and how it is implemented in Apache Kafka's KRaft metadata mode.

Redis Interview Questions & Answers

Senior-level Redis interview questions covering data structures, persistence, clustering, cache patterns, distributed systems, and production failure scenarios.

Saga Pattern (Distributed Workflows)

A complete guide to the Saga Pattern — from real-world analogies for beginners to choreography vs orchestration internals, compensating transactions, idempotency, state machine design, and failure recovery for senior engineers.

Scaling Writes

Deep-dive into high write throughput techniques — sharding, partitioning, WAL internals, LSM trees, async pipelines, batching, backpressure, idempotency, and distributed transactions — with production Java/Spring code and failure mode analysis.

Transactional Outbox Pattern

A complete guide to the Transactional Outbox Pattern — from the Dual-Write problem for beginners to CDC vs polling internals, at-least-once guarantees, ordering semantics, and production monitoring for senior engineers.

Two-Phase Commit (2PC) & Three-Phase Commit (3PC)

A comprehensive guide to Two-Phase Commit (2PC) and Three-Phase Commit (3PC) — from real-world analogies for beginners to WAL internals, failure modes, and XA implementation for senior engineers.