Here is a quick example to show how to manage an app in a cluster. Node’s (v0.6.x) cluster API is simple, but it takes a few extra steps to make the cluster management scriptable. The example below shows how.
I don’t like writing client apps that use APIs. Writing HTTP client code to talk to APIs is verbose, repetitive, chatty and slow. This is in addition to addressing latency and bandwidth constraints and core functionality of the client app – such as building a snappy UI or supporting some other business use case.
For a soon-to-open sourced nodejs based platform that I have been working on since June this year, I needed a way to send some optional telemetry data back to the browser without mixing it with the real data that the client code is interested in. The first thing I looked at was socket.io. Socket.io’s claim […]
Every other new OSS project is now awesome, fast, robust or even battle-hardened. If you really want your OSS project to outlive a swarm of retweets over a day, here is some advice: Think of some concrete scenarios to help us understand what is awesome/fast/robust/whatever about your stuff. Write tests for those scenarios. Publish your […]
I came across MessagePack from multiple sources in recent weeks. MessagePack claims to be a "binary-based efficient object serialization library". The bar chart on MessagePack’s site claims that MessagePack is four timers faster than JSON serialization and deserialization. Really? If true, it is able to optimize for both speed and space at the same time. […]
This thought is long overdue. I wanted to write this up nearly a year ago. Since there are more interesting problems to work on than the subject of this post, let me keep this brief. Don’t follow models like Richardson’s Maturity Model to decide whether your app is RESTful or not. Why not? The reason […]
Mar 29, 2011: The source used for these tests is now available at https://github.com/s3u/ebay-srp-nodejs and https://github.com/s3u/ebay-srp-play. Mar 27, 2011: I updated the charts based on new runs and some feedback. If you have any tips for improving numbers for either Nodejs or Play, please leave a comment, and I will rerun the tests. We often […]