- What do Etcd, Consul, and Zookeeper do?
- Service Registration:
- Host, port number, and sometimes authentication credentials, protocols, versions numbers, and/or environment details.
- Service Discovery:
- Ability for client application to query the central registry to learn of service location.
- Consistent and durable general-purpose K/V store across distributed system.
- Some solutions support this better than others.
- Based on Paxos or some derivative (i.e. Raft) algorithm to quickly converge to a consistent state.
- Service Registration:
- Centralized locking can be based on this K/V store.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jaeger | |
// go test -bench=. | |
// BenchmarkByValue-8 2000000000 0.56 ns/op | |
// BenchmarkByPointer-8 2000000000 0.28 ns/op | |
import "testing" | |
func BenchmarkByValue(b *testing.B) { | |
b1 := b1{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"module name","license","repository" | |
"[email protected]","MIT","https://github.com/chalk/ansi-regex" | |
"[email protected]","MIT","https://github.com/chalk/ansi-styles" | |
"[email protected]","MIT","https://github.com/chalk/ansi-styles" | |
"[email protected]","MIT","https://github.com/ryanhefner/Array.prototype.findIndex" | |
"[email protected]","MIT","https://github.com/kriskowal/asap" | |
"[email protected]","MIT","https://github.com/benjamn/ast-types" | |
"[email protected]","MIT","https://github.com/benjamn/ast-types" | |
"[email protected]","MIT","https://github.com/babel/babel/tree/master/packages/babel-code-frame" | |
"[email protected]","MIT","https://github.com/babel/babylon" |
NewerOlder