Is there a key / value store in memory that can notify an external object of a change?

I read about key / value stores in memory, but never used them. The first to come to my uneducated mind are CouchDB and memcached (I know that CouchDB is not necessarily in memory, but often used as such).

I am looking for one of these in-memory stores that support basic scripts so that I can notify an external object (via the RESTful API) of the change. Some preliminary studies show that CouchDB supports something called Change Notifications.

Memcached does not seem to support this type of function and is a more general storage service (again, my ignorance can be clarified here).

Does anyone have any experience? Any words of wisdom for potential traps or headaches? Is there any other software that I have not listed that supports these features?

+3
source share
2 answers

membase implements the memcached protocol supersede all mutations as they arise. We build many things on top of this (replication is a precedent).

+2
source

How about setting RAM as a drive and running couchdb with this as a dir of data?

You can install a disk with disk storage as:

$ mkdir -p /tmp/couchdb
$ sudo mount -t tmpfs tmpfs -o size=2G /tmp/couchdb

And change the couchdb configuration file to store data in this directory.

[couchdb]
database_dir = /tmp/couchdb
view_index_dir = /tmp/couchdb

Launch couchdb and relax!

0

Source: https://habr.com/ru/post/1775027/


All Articles