https://github.com/poga/redis-percentile
redis module for percentile estimation
https://github.com/poga/redis-percentile
estimation percentile redis redis-module t-digest
Last synced: about 2 months ago
JSON representation
redis module for percentile estimation
- Host: GitHub
- URL: https://github.com/poga/redis-percentile
- Owner: poga
- License: mit
- Created: 2019-12-15T17:10:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-26T10:00:40.000Z (over 5 years ago)
- Last Synced: 2025-03-18T14:06:01.824Z (2 months ago)
- Topics: estimation, percentile, redis, redis-module, t-digest
- Language: Rust
- Homepage:
- Size: 9.77 KB
- Stars: 16
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# redis-percentile
Redis module for efficient percentile estimation of streaming or distributed data with [t-digest](https://medium.com/@mani./t-digest-an-interesting-datastructure-to-estimate-quantiles-accurately-b99a50eaf4f7) algorithm.
## Usage
```
$ git clone [email protected]:poga/redis-percentile.git
$ cd redis-percentile
$ cargo build
$ redis-server --loadmodule target/debug/libredis_percentile.so
```## Commands
### PERCENTILE.MERGE
```PERCENTILE.MERGE values...```
Merge a list of numbers into ``.
**response**: len(values)
### PERCENTILE.MERGESORTED
```PERCENTILE.MERGESORTED values...```
Merge a sorted list of numbers into ``.
**response**: len(values)
### PERCENTILE.GET
```PERCENTILE.GET ```
**response**: estimated value of percentile
##### example
```
PERCENTILE.GET foo 0.9
```