Skip to main content
Nauman Munir

Engineering Blog

Deep dives into system design, cloud architecture, and distributed systems.

26 articles • Page 1 of 3

Leaderless Replication: Quorums, Chaos, and Cassandra
✨ Latest

Leaderless Replication: Quorums, Chaos, and Cassandra

No leader. No followers. Any node can accept any write. Amazon's Dynamo pioneered this radical approach, and it powers some of the world's largest systems. But without a leader, how do you know what the 'true' value is?

11 min read
LeaderlessQuorumDynamoCassandra
Multi-Leader Replication: When One Leader Isn't Enough
data

Multi-Leader Replication: When One Leader Isn't Enough

Your users are in Tokyo, London, and New York. A single leader means trans-Pacific latency on every write. Multi-leader replication solves this... but introduces the nightmare of write conflicts.

Multi-LeaderReplicationConflict Resolution
10 min read
Problems with Replication Lag: The Consistency Nightmare
data

Problems with Replication Lag: The Consistency Nightmare

You update your profile photo, refresh the page... and your old photo stares back at you. You post a comment, scroll down... and it vanishes. Welcome to replication lag.

Replication LagEventual ConsistencyRead-Your-Writes
10 min read
Leaders and Followers: The Art of Database Replication
data

Leaders and Followers: The Art of Database Replication

Your primary database just crashed. Users are screaming on Twitter. Revenue is bleeding at $10,000 per minute. But wait—within 30 seconds, a backup seamlessly takes over. That's the magic of replication.

ReplicationLeader-FollowerDatabase
11 min read
Message-Passing Dataflow: Fire and Forget
data

Message-Passing Dataflow: Fire and Forget

RPC demands an immediate response. Databases store data indefinitely. But what if you want the best of both worlds? Message passing gives you the low latency of RPC with the durability and decoupling of databases.

Message PassingKafkaRabbitMQ
12 min read
REST and RPC: The Lie of Location Transparency
data

REST and RPC: The Lie of Location Transparency

For decades, developers have dreamed of making network calls as simple as local function calls. This dream has a name: location transparency. And it's a beautiful lie that has caused countless production outages.

RESTRPCgRPC
12 min read
Modes of Dataflow: Sending Messages to Your Future Self
data

Modes of Dataflow: Sending Messages to Your Future Self

You've learned how to encode data efficiently—JSON, Protobuf, Avro. But encoding is only half the story. The real question is: how does that encoded data flow between processes? And here's the twist: when you write to a database, you're essentially sending a message to your future self.

DataflowDatabasesSchema Evolution
10 min read
Apache Avro: The Schema That Reads Your Mind
data

Apache Avro: The Schema That Reads Your Mind

Discover how Avro eliminates field tags entirely, enabling dynamic schema generation for data pipelines. Learn why writer and reader can use different schemas—and how this powers the Hadoop ecosystem.

Apache AvroSchema EvolutionData Engineering
13 min read
Thrift and Protocol Buffers: How Google and Facebook Shrunk Data by 60%
data

Thrift and Protocol Buffers: How Google and Facebook Shrunk Data by 60%

Discover how Google and Facebook eliminated field names from their encoding formats, achieving 60% smaller payloads than JSON while enabling safe schema evolution for billions of requests per day.

Protocol BuffersThriftBinary Encoding
13 min read
JSON, XML, and Binary Variants: The Trade-offs Nobody Tells You About
data

JSON, XML, and Binary Variants: The Trade-offs Nobody Tells You About

JSON looks so simple—until Twitter discovers JavaScript can't handle their tweet IDs. Learn the four hidden problems with universal formats and when to use binary alternatives like MessagePack.

JSONXMLCSV
11 min read
Showing 1 - 10 of 26 articles
DevOps & Cloud Engineering Blog - Tutorials & Deep Dives | Nauman Munir