Skip to content

Commit

Permalink
Document usage scenarios for expirationd, indexpiration and moonwalker
Browse files Browse the repository at this point in the history
Closes #53
  • Loading branch information
ligurio committed Sep 9, 2021
1 parent 326b478 commit 940c38b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@ tuple and performs the expiry itself: either deletes it (memcache), or
does something smarter, like put a smaller representation of the data
being deleted into some other space.

There are a number of similar modules: moonwalker, expirationd and indexpirationd.

- [moonwalker](https://github.com/tarantool/moonwalker) triggered manually,
useful for batch transactions, a performance about 600/700k rec/sec
- [expirationd](https://github.com/tarantool/expirationd/issues/53) always
expires tuples without using indices but using any condition, without guarantee
for time expiration.
- [indexpirationd](https://github.com/moonlibs/indexpiration) always expires
tuples with indices, has a nice precision (up to ms) for time to expire.

Table below may help you to choose a proper module for your requirements:

| Module | Reaction time | Uses indices | Arbitrary condition | Expiration trigger |
|---------------|---------------|--------------|---------------------|------------------------------------|
| indexpiration | High (ms) | Yes | No | synchronous (fiber with condition) |
| expirationd | Medium (sec) | No | Yes | synchronous (fiber with condition) |
| moonwalker | NA | No | Yes | asynchronous (using crontab etc) |

### Examples

Simple version:
Expand Down

0 comments on commit 940c38b

Please sign in to comment.