Michael Guay
Michael Guay writes about NestJS architecture, patterns, and production practices.
Articles by Michael Guay (11)
Add SSL to Drizzle + NestJS for AWS RDS (Postgres)
Encrypting database traffic isn’t optional—especially if you’re handling user data or building anything that might one day need audits or certifications.…
How to Integrate Better-Auth with NestJS + tRPC
When you’re building a modern API with NestJS and tRPC , authentication is usually one of the first hurdles. Instead of rolling your own, you can use Better…
Implementing Idempotency in NestJS with an Interceptor
When building APIs, especially for payments or operations that modify state, you want to avoid executing the same request multiple times if the client retries.…
Implementing the Strategy Pattern in NestJS
Writing Clean, Decoupled Code with the Strategy Pattern One of the biggest signs of a mature backend developer is understanding how to decouple high-level…
Type-Safe Full-Stack Development: Shared Types Between TanStack Router and NestJS with Zod
Introduction In modern full-stack development, maintaining type safety across frontend and backend can be challenging. Different teams might duplicate type…
Building a NestJS App with SWC: A Step-by-Step Guide
NestJS is a powerful TypeScript framework, but its default compilation (using the TypeScript compiler, tsc) can become a bottleneck as projects grow. SWC…
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,…
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,…
NestJS Custom Decorators
Decorators are a design pattern that can help us to write cleaner code that adheres to the Single Responsibility Principe and Open-closed Principle. In…
NestJS Domain Driven Design With Class Transformer
This article will show how we can utilize the powerful class-transformer library to implement clean domain-driven code in a NestJS application. By the end, you…
NestJS Factory Method Pattern
In this article, I want to show you how to implement the factory method pattern in NestJS to allow for cleaner code. By the end of this article, you should be…