Node

I Know Node

Turbo Charge MongoDB Query Speed With Redis

I've been working with MongoDB for quite a while. For most of the part, I like it. The syntax is expressive and simple, which makes it very friendly for new developers. After working with it for a while, I gradually realized that some queries are expensive to carry out, and some are unnecessary. So I tried to optimize my queries with various techniques. Here's what I've found.

Read
I Know Node

Understanding NodeJS Event Loop

It took me a while to understand how Node achieves non-blocking IO within one single thread. The misconception about Node being single threaded is what causes my confusion. In this post, I'll demonstrate that Node is not completely single threaded, and show you the general implementation of event loop.

Read