background preloader

Log

Facebook Twitter

Building a Real-time, Polyglot Application with Node.js, Ruby, MongoDB and Socket.IO. Mongodb node polyglot ruby socketio Table of Contents Real-time apps, or evented apps that incorporate push-based interactivity, are the basis for a new generation of in-browser capabilities such as chat, large-scale games, collaborative editing and low-latency notifications.

Building a Real-time, Polyglot Application with Node.js, Ruby, MongoDB and Socket.IO

Though there are many technologies supporting the real-time movemement, four stand out in particular: Ruby, Node.js, MongoDB and Socket.IO. Christkv/node-mongodb-native. Capped Collections. Capped collections are fixed-size collections that support high-throughput operations that insert, retrieve, and delete documents based on insertion order.

Capped Collections

Capped collections work in a way similar to circular buffers: once a collection fills its allocated space, it makes room for new documents by overwriting the oldest documents in the collection. See createCollection() or createCollection for more information on creating capped collections. Capped collections have the following behaviors: Capped collections guarantee preservation of the insertion order. Powershell - Loggly Wiki.