Hey ๐Ÿ‘‹, I’m Nimendra

I’m a self-learner, passionate about Cloud and DevOps, and an avid bookworm. Explore more about me , check out my blog , or get in touch . You can also view my resume .

System Design Notes: Split Brain in Docker Swarm

Split Brain in distributed systems, such as Docker Swarm, occurs when a network partition causes nodes to lose communication with one another. This results in two or more subsets of nodes thinking they are the leader or primary controller of the cluster. This inconsistency can lead to: Data corruption Conflicting operations Duplicate tasks being executed How it Happens Network Partition: A temporary network failure splits the nodes into two or more isolated groups. Leader Election Conflict: Each isolated group might independently attempt to elect a leader. Independent Decisions: Each group operates as a separate cluster, leading to inconsistent states. In a Docker Swarm cluster: Nodes are classified into managers and workers. Managers coordinate service orchestration and maintain the cluster state. If a partition occurs: Each group of managers may elect its own leader. This results in multiple active leaders (split brain) and service conflicts. Consequences of Split Brain Data Inconsistency: Multiple leaders might make conflicting updates. Duplicate Workloads: Services may be scheduled redundantly. Unrecoverable State: Independent decisions by both partitions can be hard to reconcile. Reduced System Reliability: The system becomes unpredictable or unusable. Prevention Techniques in Docker Swarm Docker Swarm uses the following techniques to avoid split-brain scenarios: ...

July 14, 2025 ยท 3 min ยท Nimendra

System Design Notes: Redis Serialization Protocol (RESP)

Unlike many web services that use HTTP, Redis uses a custom protocol known as the Redis Serialization Protocol (RESP) for communication between clients and servers. What is RESP? RESP, or Redis Serialization Protocol, is the wire protocol used by Redis clients (including redis-cli) to communicate with the Redis server. It defines the way data is serialized and transmitted over the network. A wire protocol is the formal specification of how data is formatted and exchanged between two systems over a network connection. โ€” Wikipedia ...

July 12, 2025 ยท 3 min ยท Nimendra

System Design Notes: Redis Pub/Sub with Go

Redis is often described as a data structure server. In addition to being a key-value store, Redis offers features such as caching (like Memcached), queues, and Pub/Sub messaging. This article focuses on the Pub/Sub (publish-subscribe) pattern in Redis, how it works, its characteristics, and how to use it effectively with Go. What is Redis Pub/Sub? In Redis, a client can publish messages to a named channel, and other clients can subscribe to receive those messages from that channel. ...

July 10, 2025 ยท 3 min ยท Nimendra

Why I'm Going Back to Zathura reader

After trying various readers on Linux, Iโ€™m returning to Zathura for its speed, minimal UI, and distraction-free reading, using a customized Gruvbox theme and a script for quick file selection.

April 3, 2025 ยท 3 min ยท Nimendra

9 Simple Tips to Escaping Social Media

My tips to step away from social media

January 15, 2025 ยท 2 min ยท Nimendra

Ghostty First Impression

Iโ€™ve tried Ghostty, and here are my quick review.

December 28, 2024 ยท 2 min ยท Nimendra

Goodbye Postman?๐Ÿ‘‹ CLI Tools That Will Change Your API Testing Forever

A comprehensive guide to command-line HTTP clients(curl, HTTPie, and xh).

November 7, 2024 ยท 8 min ยท nimendra