Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/moxar/xload

Package xload provides request caching and buffering tools. Request caching and buffering is a common requirement in backend development. As an example, GraphQL performance enhances a lot when the incomming request uses those two mechanism. https://github.com/vektah/dataloaden proposes an implementation that generates code to handle both issues. However, the implementation does not distinguises caching and buffering. Some requests cannot be cached but can be buffered, and vice versa. This package (aims to) provide both features in an independant, yet combinable way. With two SQL queries A and B Benefits of caching and buffering would be: Finaly, the initialization of the buffer or cache must be cheap. They are meant to be scoped to a unique job such as a http request. The following definitions must be evaluated in regard of this package's context. Note that the request is agnostic of the backend (REST, HTTP, SQL, Redis...). Buffering consists in aggregating similar requests emitted during a short period of time, to send a unique, bigger request. Caching consists in saving, in memory, the response of a request for a short period of time. This response must be accessible with a unique identification that is tied to the request.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/moxar/xload
Keywords: buffer, cache, go, request
License: MIT
Latest release: about 4 years ago
First release: almost 5 years ago
Namespace: github.com/moxar
Stars: 3 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 23 days ago

    Loading...
    Readme
    Loading...