Your AI product works great in demos and local testing. Then you put it into production only to see it fail spectacularly. What went wrong? How to spot scalability issues in your code at the early stages? Build your MVP with scalability in mind for your startup.
Continue readingPost Category → Blog
Launching multiple instances of PostGraphile with PM2
Launching PostGraphile with PM2 allows multiple PostGres databases to be exposed through GraphQL.
PostGraphile allows additional plugins to support advanced filtering and queries capabilities.
However, PM2 requires special configuration to allows multiple processes with same script name to be started.
In this post, we review the configuration required to achieve this.
Continue readingCombining ZeroMQ and NanoMsg for Serving Web-requests
Web-requests typically follow a request-reply pattern. However, ZeroMQ has severe restrictions on using REQ-REP patterns in an asynchronous way. NanoMsg attempts to solve this strictness of REQ-REP by fusing them with reconnect capabilities and load-balancing features.
Continue readingThread-Ring benchmark C++ implementation with Piped threads
The thread-ring is a standard benchmark challenge to validate the performance of sequential communication among parallel threads.
Here is the code, run it on your system, and see the timings. Post your results here if you like what you see.
Continue reading