Skip to content

Instantly share code, notes, and snippets.

View digigarlab's full-sized avatar

Anthony Garcia digigarlab

  • Garlab Ltd
  • London
View GitHub Profile
  • 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.
@digigarlab
digigarlab / fileMock.js
Created December 27, 2017 10:31
Jest + Enzyme
// This is file is used by jest to resolve imports to asset files such as images or fonts
export default 'test-file-stub'
@digigarlab
digigarlab / .editorconfig
Created December 27, 2017 10:22
Eslint + prettier
[*]
indent_style = space
end_of_line = lf
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
max_line_length = 0

Keybase proof

I hereby claim:

  • I am digigarlab on github.
  • I am agarcia (https://keybase.io/agarcia) on keybase.
  • I have a public key ASDJpOYZTAiIZzdk3GztxMF-3s5o3vEoZY92vPhKslFVBQo

To claim this, I am signing this object: