ETCD Server startup process

etcd Server startup overview The startup of etcd server includes two parts: The main process of etcdServer, which directly or indirectly includes many core components such as raftNode, WAL and snapshot, can be understood as a container; The other is raftNode, which encapsulates the implementation of the internal Raft protocol and exposes ...

Added by mishasoni on Thu, 03 Mar 2022 03:39:51 +0200

ETCD eight distributed consistency raft module

Data inconsistency will inevitably occur among multiple nodes in etcd cluster. However, whether synchronous replication, asynchronous replication or semi synchronous replication, there will be problems of availability or consistency. We usually use consensus algorithm to solve the problem of data consistency of multiple nodes. The common cons ...

Added by Jenling on Mon, 28 Feb 2022 04:15:00 +0200

[Golang] gRPC service discovery and load balancing based on ETCD

Three modes of load balancing: https://grpc.io/blog/grpc-load-balancing/ ProxyThick client(Client side)Lookaside Load Balancing (Client side) Basic usage server side registration service Register the service information to the kv center when the service starts import( ... "go.etcd.io/etcd/client/v3" "go.etcd.io/etcd/client ...

Added by stearnol on Thu, 24 Feb 2022 12:54:58 +0200

Take you ten days to easily handle the Go micro service series

preface We will show you a go zero micro service example in detail through a series of articles. The whole series is divided into ten articles, and the directory structure is as follows: Environment construction Service splitting User services Product service Order service Payment services (this article) RPC service Auth authen ...

Added by davestevens_uk on Thu, 27 Jan 2022 01:46:24 +0200

Take you ten days to easily complete the Go micro service series

preface We will show you a go zero micro service example in detail through a series of articles. The whole series is divided into ten articles, and the directory structure is as follows: Environment construction Service splitting User services Product service Order service (this article) Payment services RPC service Auth authen ...

Added by Dat on Sat, 22 Jan 2022 05:45:50 +0200

Distributed transaction practice in microservices

background With the rapid development of business and the increasing complexity of business, microservice, as one of the best solutions, decouples services, reduces complexity and increases maintainability, but also brings some new problems. When we need to ensure data consistency across services, the original database transaction is unable t ...

Added by dserf on Tue, 21 Dec 2021 05:56:00 +0200

Build a PostgreSQL cluster with automatic failover based on patroni+etcd

Author: Hangzhou meichuang Technology Co., Ltd Thanks to the open source feature of PostgreSQL, more and more third-party cluster management software fills the ease of use and reliability of PostgreSQL in cluster. patroni+etcd provides a series of cluster management schemes. Etcd is responsible for storing cluster status information to contact ...

Added by inghamn on Fri, 15 Oct 2021 07:22:44 +0300