priitj / whitedb

WhiteDB memory database
http://whitedb.org/
GNU General Public License v3.0
608 stars 78 forks source link

Feature: WebSocket + CBOR/BSON + BEEP Interfaces #9

Closed X4 closed 8 years ago

X4 commented 10 years ago

Hi,

for latency and high performance throughput applications TCP is not enough. Speed matter and I think we would benefit from WebSockets, BSON and BEEP support.

I've researched for you: WebSockets: http://www.aspl.es/nopoll/ or http://libwebsockets.org/trac/libwebsockets (Persistent Connection) BEEP: http://www.aspl.es/vortex/ (Custom Protocol ontop WebSockets) BSON: http://bsonspec.org/ (Binary Json)

If you add all this, it's essential to customers to use any kind of Message Passing Interfaces (MPI). That's because solutions like zeromq help to reduce the load massively, by organizing incoming connections and reconnecting lost connections etc.

priitj commented 10 years ago

Thank you for the suggestion. This is actually good timing since we're planning related development, so we'll look into these features as well.

X4 commented 10 years ago

I was afraid that the timing was wrong and you were more concerned on other work, so I'm glad it fits into your plans! Maybe it would even make sense to use torrent over WebSockets with BSON as the distributed data format (btw. I know at least one Websocket torrent library).

X4 commented 10 years ago

CBOR, being more efficient than BSON See: http://tools.ietf.org/html/rfc7049 and http://tools.ietf.org/html/rfc7049#appendix-E.6 I would recommend considering that instead.

priitj commented 10 years ago

Just for a status update, the binary protocol stack is probably not going to happen right now. That's what I got from Tanel the last time we discussed this. Persistent connections still look attractive, but I'll leave the final word to Tanel, as he's been doing the thinking and experimenting on this.

X4 commented 10 years ago

No worries, all good things take time. Very nice of you, for giving the status update. Thanks @priitj hope you and tanel have a great new year!