
Create the email microservice with no database to handle sending emails, remove that functionality from the monolith, and wire it into the system via Apache Kafka events.
Import data from the ambassador microservice into the users database by creating a dedicated connection, fetching all users via the user repository, and seeding the database.
Learn http communication in a NestJS microservice as you break a monolith into microservices, implementing a register endpoint with api prefix, validation, cookies, and inter-service axios calls.
Set up the admin microservice, configure docker files and networks, remove redis, set the admin port to 8000 and connect the admin database, and install validation pipes and cookie parser.
Move the order module across admin and checkout microservices, using a primary key (not a primary generated column) for orders and order items, with IDs assigned in checkout.
Complete the link module by finalizing the link model, removing the shared model and guards, and wiring relations with products, orders, and order items via the join table.
Learn to build a Kafka-driven dynamic command dispatcher in a NestJS microservice by wiring a Kafka controller to execute functions like product created or product updated based on message keys.
Develop the ambassador and checkout microservices and wire the frontend to communicate via the users microservice and budget Kafka, completing the monolith to microservices transition.
Move the user module from the monolith to microservices by copying the user model, updating the scope to ambassador, and configuring the user controller and shared services with cache manager.
Move the product model from the admin microservice to the product module, update the controller, import the cash manager and request, and seed the data via Docker.
Configure Kafka by creating checkout and ambassador topics, wiring product, link, billing, and admin services, and emitting order events across microservices on order creation and completion.
deploy a dockerized email microservice on kubernetes by creating a pod yaml, properly naming the image, building with docker compose, and applying the configuration to ensure the pod stays running.
Learn to convert docker compose to Kubernetes with Kompose, handle version compatibility, and deploy using deployments, environment variables, and replicas to scale microservices.
Learn how to use Kubernetes secrets to securely store and reuse values like usernames and passwords, creating secret generics for Kafka and mail configurations and applying them across Kubernetes files.
Deploy the user microservice by creating a Google Cloud database and setting up production Docker configuration. Configure environment variables for host, port, and database, then test the Docker Compose deployment.
Push docker images to Google Cloud Registry, update latest tags for users and email, deploy via Kubernetes with an external load balancer, and diagnose a database connection timeout during startup.
Clone the users database to an admin database and prepare its environment. Configure Docker compose for the admin service, set admin consumer credentials and seeds, and prepare Kubernetes manifests.
Welcome to NestJS and Kafka: Breaking a Monolith to Microservices Course - the course that will take your Javascript development skills to the next level.
How this course works
This course will start with a pre-built monolith, the building of the starting app won't be covered in this course. So in this course, you will start immediately with Microservices Architecture, this course is intended for people that have a solid understanding of Javascript and want to learn in a short amount of time more advanced concepts. I am very clear and precise in my way of teaching so this course won't have unnecessary explanations on my part, I will explain what is needed when it is needed.
If you are interested in learning how the Monolith is created you can check my other courses:
Angular Material, Universal & NestJS: A Rapid Guide
React, Next.js and NestJS: A Rapid Guide - Advanced
Vue 3, Nuxt.js and NestJS: A Rapid Guide - Advanced
In those courses, you will learn how to build a SPA with your favorite frontend framework.
What you will learn in this course
In this course, you will start with a pre-built monolith and you will learn:
What is the Microservices Architecture
How to Configure Kafka with NestJS
Internal Http Requests
How to make a Microservice only for Authentication Purposes
Run Docker with multiple networks
Produce Kafka Events to multiple topics
Create Custom Middlewares & Services
Import Data from multiple databases
About Me
I'm a FullStack Developer with 10+ years of experience. I'm obsessed with clean code and I try my best that my courses have the cleanest code possible.
My teaching style is very straightforward, I will not waste too much time explaining all the ways you can create something or other unnecessary information to increase the length of my lectures. If you want to learn things rapidly then this course is for you.
If you have any coding problems I will offer my support within 12 hours when you post the question. I'm very active when trying to help my students.
So what are you waiting for, give this course a try and you won't get disappointed.