An open API service indexing awesome lists of open source software.

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

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
```