We have thousands of tests and regularly deploy to production multiple times per day. This article is about all the crazy things we do to make that possible.
How we test our API
Our web API runs on node.js, but a lot of what we do should be applicable to other platforms.
On our API alone, we have ~2000 tests.
We have some wacky automated testing strategies:
Continue readingFs-Tail is a simple library we wrote that provides tail -f
-like functionality using Node’s v0.10+ streams and fs modules. Install via npm:
1npm install fs-tail
As ClassDojo has grown, we’ve spent a lot of time improving our analytics infrastructure. An important part of those efforts has been building a pipeline that can quickly transfer hundreds of gigabytes of data from our primary Mongo cluster to Redshift.
Continue readingThis is the last part of my 3-part series on production-quality Node.js web applications. I've decided to leave error-prevention to the end, because while it's super-important, it's often the only strategy developers employ to ensure customers have the most defect-free experience as possible. It's definitely worth checking out parts I and II if you're curious about other strategies and really interested in getting significant results.
Continue reading