nlf / riakdown

A riak-backed leveldown interface based on abstract-leveldown
MIT License
28 stars 2 forks source link

Clarification #6

Open tizzo opened 9 years ago

tizzo commented 9 years ago

I'm sorry if this is a n00bish question but I'm wondering what the implications of using riak as a backend for levelup is when it comes to multiple processes. Would it be safe to have multiple node processes connect to the same riak cluster using this module or should you sort of treat levelup the same way having a single node process as the gate keeper to data in this bucket and connect other processes to that node process via HTTP or something.

Thanks!

fritzy commented 9 years ago

You can certainly have more than one process using it, but keep in mind that things might change out from underneath you. (for example, keys being added and removed while you stream them). If this isn't a problem, then I wouldn't worry about it. Otherwise, yes, do use a gatekeeper.