Michael Guay
Michael Guay writes about NestJS architecture, patterns, and production practices.
Articles by Michael Guay (31)
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.…
Apache Pulsar + NestJS Tutorial
Learn how to integrate asynchronous messaging into your application & achieve scale with Apache Pulsar. Includes deployment on Kubernetes. The post Apache…
Build a Full-Stack Todo App with Turborepo, tRPC, Next.js, NestJS & React Native
Take your TypeScript skills to the next level by building a production-grade full-stack Todo app with modern tools: - Turborepo for monorepo management and…
Build an AI Chatbot with Vercel AI SDK & Gateway
In this 3-hour, full-stack build, we create an AI chatbot from scratch using NestJS and Next.js. You’ll learn how to harness the Vercel AI SDK + Gateway to…
Build an AI Chatbot with Vercel AI SDK & Gateway
In this 3-hour, full-stack build, we create an AI chatbot from scratch using NestJS and Next.js. You’ll learn how to harness the Vercel AI SDK + Gateway to…
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…
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,…
Deploy NestJS on Railway with Postgres & Docker
In this video, I’ll walk you through how to deploy a NestJS application to Railway, fully containerized with Docker, and connected to a PostgreSQL database.…
End-to-End Type-Safe APIs with NestJS & oRPC
Build type-safe APIs with NestJS and oRPC — define shared contracts with Zod, implement validated CRUD endpoints, and auto-generate OpenAPI docs in a Turborepo…
End-to-End Type-Safe APIs with NestJS & oRPC
Build type-safe APIs with NestJS and oRPC — define shared contracts with Zod, implement validated CRUD endpoints, and auto-generate OpenAPI docs in a Turborepo…
Full Stack Authentication in 20 Minutes With Clerk (Next.js + NestJS)
In this hands-on lecture, you'll master full-stack authentication using Clerk, seamlessly integrating Next.js on the frontend and NestJS on the backend in just…
Goodbye Node.js? NestJS + Bun: The Future of Fast Backends
Experience blazing-fast performance by running your NestJS apps on Bun, with instant startup times, a lightning-quick package manager, and the ability to…
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…
k6 Fundamentals: Load Test Your API with Confidence
Everything you need to start load testing with k6. Covers the core concepts - virtual users, stages, checks, and thresholds - then puts them into practice by…
Multitenancy in NestJS with Drizzle ORM
We’ll dive into setting up multitenancy in a NestJS application using Drizzle ORM and Async Local Storage. This powerful combination allows you to efficiently…
NestJS Authentication + Refresh Token With Passport.js
Learn how to implement JWT authentication in a NestJS application. Includes refresh token authentication to refresh our JWT and prevent users from having to…
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…
NestJS gRPC & Angular
Learn how to connect a gRPC backend built with NestJS to an Angular UI. Implement CRUD functionality and stream real time data using persistent HTTP/2…
NestJS Hexagonal Architecture + CQRS | Full Project
In this lecture, we’ll build a complete NestJS project using Hexagonal Architecture and CQRS from the ground up. You’ll learn how to structure your code around…
NestJS + Next.js: Event Driven Architecture
In this lecture, you'll learn how to build an event-driven architecture that seamlessly connects a NestJS backend with a Next.js UI using EventEmitter and…
NestJS Server-Sent Events | Build a Real Time Crypto Dashboard
In this lecture we learn how to implement server-sent events from a NestJS backend in order to stream real time data to a Next.js cryptocurrency dashboard. The…
NestJS Tracing | Open Telemetry & Honeycomb
Learn how to implement tracing in a NestJS application to view where time is being spent in your applications & debug slow APIs. The post NestJS Tracing | Open…
Node.js Graceful Termination
In a Kubernetes environment, graceful termination is essential for ensuring smooth transitions during deployments or scaling in your Node.js applications.…
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,…
tRPC + NestJS: This Changes Everything
Discover how NestJS and tRPC are revolutionizing API development with type-safe APIs, faster workflows, and zero boilerplate. In this video, we dive into why…
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…
Write Cleaner NestJS | Configurable Module Builder
Learn how to write cleaner NestJS by creating Dynamic Modules easily with the Configurable Module Builder. The post Write Cleaner NestJS | Configurable Module…