Skip to content

Instantly share code, notes, and snippets.

View yurishkuro's full-sized avatar

Yuri Shkuro yurishkuro

View GitHub Profile
@yurishkuro
yurishkuro / gist:b135e6750df0f95aa86c35a77cc736d4
Created August 5, 2017 00:08
by-value vs. by-pointer benchmark
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{}
@yurishkuro
yurishkuro / gist:273b5c0ed3556dfb84a095002f7dc40c
Last active August 4, 2017 23:24
jaeger-ui runtime dependency licenses (produced with `license-checker --production --csv`)
"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"
  • 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.
  • Centralized locking can be based on this K/V store.