Performance & Scaling
Caching, queues (Bull/BullMQ), profiling, load tests, optimization
6 articles
Optimizing NestJS Performance with HTTP Keep-Alive
HTTP Keep-Alive, also known as HTTP persistent connection, is the practice of reusing a single TCP connection to send multiple HTTP requests and responses,…
Improving performance through indexes with Prisma
The bigger our database, the more we need to care about its performance. A common way of improving it is through indexes. Therefore, this article introduces…
Handling CPU-intensive tasks with queues
Handling CPU-intensive operations with REST API can be tricky. If our endpoint takes too much time to respond, it might result in a timeout. In this article,…
Cache with Redis. Running the app in a Node.js cluster
Redis is a fast and reliable key-value store. It keeps the data in its memory, although Redis, by default, writes the data to the file system at least every 2…
Implementing in-memory cache to increase the performance
There are quite a few things we can do when tackling our application’s performance. We sometimes can make our code faster and optimize the database queries. To…
Improving performance of our Postgres database with indexes
As our system grows, certain queries on our database might fail us in terms of performance. One of the popular ways of dealing with this issue are indexes.…