Operations 7 min read

What Makes a System Highly Available? 6 Proven Architecture Patterns

This article explains the essential characteristics of high‑availability architectures—master‑slave failover, load balancing, and horizontal scaling—and reviews six practical solutions including LVS + Keepalive, NGINX, Zookeeper, client‑side strategies, service‑level replication, and middleware approaches.

IT Architects Alliance
IT Architects Alliance
IT Architects Alliance
What Makes a System Highly Available? 6 Proven Architecture Patterns

Before diving into specific high‑availability (HA) solutions, it is useful to define the core traits an HA architecture should exhibit:

Master‑Slave Failover : When a primary instance crashes, traffic should be redirected to a standby instance within seconds, and the failed node should automatically revert to a slave role once recovered.

Load Balancing : Traffic must be distributed across multiple instances when a single node cannot handle the load. Advanced HA setups may dynamically adjust distribution based on each node’s performance to keep response times balanced.

Horizontal Scalability : Adding capacity should be transparent to callers, allowing the system to grow without disrupting existing services.

LVS + Keepalive

LVS (Linux Virtual Server) creates a virtual IP that is shared by several Linux machines running IPVS and Keepalive. Only one machine holds the virtual IP at a time; if it fails, another machine immediately takes over, ensuring continuous service availability. Keepalive continuously checks the health of each node.

NGINX

Although NGINX is primarily a reverse‑proxy server, its rich load‑balancing capabilities make it a common choice for HA. It can distribute requests among backend servers and, when combined with Keepalive or a custom DNS setup, can detect and bypass failed nodes.

Key concepts:

Forward proxy : client‑side proxy that accesses external resources on behalf of the client.

Reverse proxy : server‑side proxy that forwards client requests to internal services, hiding the actual backend servers.

Zookeeper

Zookeeper itself is a distributed coordination service that provides HA. Services register themselves with Zookeeper and maintain a heartbeat. If a service disappears, its registration is removed, preventing clients from routing to a dead instance.

Client‑Side HA Strategies

Using Memcached as an example, a client can maintain connections to multiple cache nodes and apply a selection algorithm. When a node fails, the client re‑routes requests to remaining nodes, though data loss is possible without server‑side replication.

Service‑Level HA (e.g., Redis Replication)

Redis clusters demonstrate HA by having master and replica nodes communicate. If the master fails, a replica is promoted automatically, making the failover transparent to clients.

Middleware‑Based HA

Middleware such as MyCAT can provide HA for databases like MySQL. Early Redis versions also relied on external middleware to achieve HA before native clustering was available.

In summary, the article offers a brief overview of common HA patterns. Detailed implementations—especially for stateful services and advanced microservice scenarios—require deeper exploration beyond this introductory guide.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

high availabilityload balancingZooKeeperNginxLVS
IT Architects Alliance
Written by

IT Architects Alliance

Discussion and exchange on system, internet, large‑scale distributed, high‑availability, and high‑performance architectures, as well as big data, machine learning, AI, and architecture adjustments with internet technologies. Includes real‑world large‑scale architecture case studies. Open to architects who have ideas and enjoy sharing.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.