LakTEK A Sri Lankan, A Rubyist and A Web Dude

Real-time Collaborative Editing with Web Sockets, Node.js & Redis

Few months ago, I mentioned I’m developing a real-time collaborative code editor (codenamed as Realie) for my individual research project in the university. Since then I did couple of posts on the design decisions and on technologies I experimented for the project. After some excessive hacking, today I’ve got something tangible to share with you.

Currently, […]


Implementing Web Socket servers with Node.js

Web Sockets are one of the most interesting features included in HTML5 spec. It would open up a whole different paradigm in web application development by allowing asynchronous, long-lived connections between client and server. As Web Sockets were supported in Google Chrome’s beta release, it signaled now the time to use it in your apps.
However, […]


Building Real-time web apps with Rails3

On deciding the web framework to build Realie, one of the main considerations was should I move to a totally asynchronous framework? Most established web frameworks, including my favorite Rails is built in a synchronous manner and follows a call-stack based model. Real-time web apps needs to be asynchronous. Evented programming model ideally suits to […]


Realie Project: Data Structure & Storage

Last couple of days, I found some time to work on my individual research project for the degree course. The topic area I selected for my project was on “Real-time Web”. Real-time Web is just the opposite of the current way we use the web. Rather than we checking (polling) content providers for updates, content […]