Optimizing NestJS Performance with HTTP Keep-Alive
HTTP Keep-Alive is one of the easiest ways to boost performance in your NestJS apps. By reusing TCP connections for multiple requests, you can reduce latency, avoid port exhaustion, and handle higher throughput with less overhead.
In this post, we’ll explore how to enable and tune Keep-Alive in both NestJS servers and clients, including real-world best practices for high-performance APIs.
When to use Microservices in Node.js
Microservices offer scalability and flexibility, but they also introduce significant complexity, making them a poor fit for many Node.js applications.
The key is not to default to microservices but to adopt them when the trade-offs justify the benefits.
Speed Up Jest Test Suites with Sharding
Large test suites in Node.js and React projects can significantly slow down your continuous integration (CI) pipeline. Jest already runs tests in parallel on a single machine using worker processes, but for very large suites you may need to parallelize across multiple machines. Jest 28 introduced a new –shard option that makes it easy to split your test suite into chunks and run them concurrently on separate CI runners.
Building a Standalone NestJS Application for Web Scraping
NestJS is a versatile framework that can go beyond server-based applications. In this guide, we’ll focus on building a NestJS standalone application, showcasing how to utilize its modular structure and dependency injection to create a CLI-based tool for web scraping
Why Apache Pulsar is Better for Scaling Node.js Applications Than Kafka
When building Node.js applications that rely on message brokers for asynchronous communication, developers often face the challenge of choosing between Apache Kafka and Apache Pulsar. While both are excellent distributed messaging systems, Pulsar has distinct advantages when it comes to scaling Node.js applications.
This blog post explains why Pulsar’s architecture and features make it a better fit for the Node.js ecosystem compared to Kafka, especially for dynamic, horizontally scaled systems.
NestJS Custom Decorators
Learn to utilize custom decorators in NestJS to make your code cleaner & adhere to the single responsibility principle.
NestJS Domain Driven Design With Class Transformer
Learn how to implement domain driven design in NestJS with class-transformer & start writing cleaner, less complex code while also reducing bugs.
NestJS Factory Method Pattern
Learn how to implement the powerful factory method pattern in a NestJS application to keep your code clean & less complex.