Company
Date Published
Author
Matthew Groves
Word count
1560
Language
English
Hacker News points
None

Summary

Fast failover is now available in Couchbase Server 5.0, allowing for improved high availability in distributed databases. To demonstrate this feature, a console application was created using the .NET Core framework to connect to a three-node cluster of Couchbase nodes running inside a Docker host. The application continuously performs reads against the bucket, and at some point, one of the nodes is intentionally stopped to show automatic failover in action. The process involves detecting node failures, initiating fast failover to activate replicas, and ensuring data availability during the transition period. This feature can be useful for environments with solid networking in place, and its implementation demonstrates principles that can be applied to other ASP.NET or ASP.NET Core websites.