dskit

module
v0.0.0-...-2f8c95c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2025 License: Apache-2.0

README

Grafana Dskit

This library contains utilities that are useful for building distributed services, including:

  • Exponential backoff for retries.
  • A common cache API, implemented for Memcached and Redis.
  • Hedging, sending extra duplicate requests to improve the chance that one succeeds.
  • A common key-value API, implemented for Consul, Etcd and Memberlist.
  • RPC middlewares, for metrics, logging, etc.
  • A services model, to manage start-up and shut-down.

Current state

This library is used at scale in production at Grafana Labs. A number of packages were collected here from database-related projects:

Go version compatibility

This library aims to support at least the two latest Go minor releases.

Contributing

If you're interested in contributing to this project:

License

Apache 2.0 License

Directories

Path Synopsis
crypto
tls
dns
grpcencoding
internal
kv
Provenance-includes-location: https://github.com/grafana/loki/blob/7c78d7ea44afb420847255f9f5a4f677ad0f47bf/pkg/util/log/line_buffer.go Provenance-includes-location: https://github.com/grafana/mimir/blob/c8b24a462f7e224950409e7e0a4e0a58f3a79599/pkg/util/log/line_buffer.go Provenance-includes-copyright: Grafana Labs
Provenance-includes-location: https://github.com/grafana/loki/blob/7c78d7ea44afb420847255f9f5a4f677ad0f47bf/pkg/util/log/line_buffer.go Provenance-includes-location: https://github.com/grafana/mimir/blob/c8b24a462f7e224950409e7e0a4e0a58f3a79599/pkg/util/log/line_buffer.go Provenance-includes-copyright: Grafana Labs
Package ring contains types and functions for creating and working with rings.
Package ring contains types and functions for creating and working with rings.
example/local Module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL