On Tue, Mar 18, 2014 at 11:11 AM, Simon Last <
stl...@gmail.com> wrote:
> Works perfectly! Thank you.
>
> I have a few architectural questions, if you don't mind.
>
> My application will need to store tens to hundreds of thousands of very
> small JSON documents (<1k). Will liveDB perform well in this scenario?
Livedb doesn't store the data - its stored in mongo (or whatever your
backend database is). Livedb hasn't been the bottleneck for us,
although the query support is slow (it polls, and its seriously not
efficient if you have a lot of outstanding queries).
> I notice that liveDB uses Redis internally. Why is this?
Livedb needs a way to atomically increment the version of a document.
(Its designed assuming you have multiple frontend servers, and it
needs an ultimate source of truth).
It currently uses a lua script in redis to do this. I made a prototype
version which uses transactions in livedb to do the same thing, but I
haven't reimplemented queries there. I'd also like to factor the code
to make redis optional (so you don't need redis if you aren't scaling
past one machine), but I haven't done that yet.
-J