Monday, 15 June 2015

data structures - Is there an embeddable Java alternative to Redis? -



data structures - Is there an embeddable Java alternative to Redis? -

according thread, jedis best thing utilize if want utilize redis java.

however, wondering if there libraries/packages providing efficient set operations exist in redis, can straight embedded in java application without need set separate servers. (i.e., using jetty web server).

to more precise, able next efficiently:

there big set of m users (m not known in advance). there big set of n items. we want users examine items, 1 user/item @ time, produces stored result (in normal database.) each time user arrives, want assign user item to the lowest degree number of existing results user has not seen before. produces approximate round-robin assignment of items on arriving users, when care getting items looked @ approximately same number of times.

the above happens in parallelized fashion. when m , n large, redis accomplishes above much more efficiently sql queries. there way using embeddable java library bit more lightweight starting redis server?

i recognize it's possible write pile of code using java's concurrency libraries approximate (and extent, have done that), that's not i'm looking here.

have @ project voldemort . it's distributed key-value store created linked-in, , supports ability embedded.

in quick start guide little illustration of running server embedded vs. stand-alone.

voldemortconfig config = voldemortconfig.loadfromenvironmentvariable(); voldemortserver server = new voldemortserver(config); server.start();

i don't know much redis, can't compare them feature feature. in project used voldemort, used it's readonly backing store great results. allowed "precompile" bi-daily database in our processing data-center , "ship it" out border data-centers. way each border data-center had local re-create of it's dataset.

edit: after rereading question, wanted add together gauva's table -- table datastructure may looking , simlar many no-sql databases.

java data-structures redis set embed

No comments:

Post a Comment