Skip to content

drand/http-relay

Repository files navigation

drand HTTP relay

This repo is a complete rewrite of the HTTP relays that could initially be found in drand/drand and later in drand/drand-cli to be a self-sufficient binary that connects to a (set of) drand node(s) and queries them in the provided order in case of errors. (i.e. the latter ones in the list are fallbacks in case the first one is down.)

This is also conveniently implemented using Chi and Chi middleware, allowing us to easily provide local caching, authentication, rate-limiting based on authentication, and other features in the future as needed.

This is a minimal dependency project, meant to run without CGO but also with CGO.

Benchmarks

When requests are done on time:

When requests are done 20ms before the round is supposed to be emitted:

When requests are done 20ms after the round is supposed to be emitted:

When requests are done 700ms after the round is supposed to be emitted:

When requests are done 800ms after the round is supposed to be emitted:


License

This project is licensed using the Permissive License Stack which means that all contributions are available under the most permissive commonly-used licenses, and dependent projects can pick the license that best suits them.

Therefore, the project is dual-licensed under Apache 2.0 and MIT terms:

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published