Open mclark-newvistas opened 7 years ago
So, I'm just now getting into deepstream with the rethinkdb plugin... do you have to have the rethink client driver to get the data from deepstream? doesn't that kinda defeat the point of having deepstream in the first place?
Deepstream is not a database, but a message broker. The purpose of the rethink client driver is to give deepstream a place to stash data at rest; any datastore could be used. The advantage of Rethink+deepstream is the proactive record change notifications, which Rethink cannot safely deliver to the client by itself. Horizons is an attempt at solving the Rethink->browser data connection, but when choosing a framework for development we felt it lacked vital security features, as many other alternatives for "backend-less" programming did. All would be adequate for a small site on a trusted intranet; deepstream was adequate for a large site on the public internett.
When I was trying to figure out the code I wrote my own version to analyse it. Since we can't use that anymore, I might as well share it in case you've any use for it. Remember that the number of bugs is a function of the number of lines/tokens.
https://gist.github.com/mclark-newvistas/74a0a960e3e6d4b35455580b2acfc0fb