Create a multi tenant application in Nest.js


Create a multi tenant application in Nest.js
31
Aug

Overview

Multitenancy and microservices are used nowadays very frequently in Saas application development. In Saas, their consists of many modules that work together. Here we will learn about the multi-tenant application in Nest.js with microservice architecture. Nest.js is a progressive and scalable framework for server-side application development. Nest provides an out-of-the-box application architecture which allows developers and teams to create highly testable, scalable, loosely coupled, and easily maintainable applications. The architecture is heavily inspired by Angular.

Nest provides a level of abstraction above these common Node.js frameworks (Express/Fastify), but also exposes its APIs directly to the developer. This gives developers the freedom to use the myriad of third-party modules which are available for the underlying platform.

Nest.js Multitenancy

Nest natively supports the microservice architectural style of development in addition to traditional (often termed monolithic) application architectures. Most of the techniques covered in this documentation, including as dependency injection, decorators, exception filters, pipelines, guards, and interceptors, are also applicable to microservices. Nest encapsulates implementation details whenever feasible so that the same components may run across HTTP-based platforms, WebSockets, and Microservices. This section discusses Nest's microservices-specific features.

Nest supports several built-in transport layer implementations, called transporters, which are responsible for transmitting messages between different microservice instances. Most transporters natively support both request-response and event-based message styles.

 


Login   To Comment & Like

Comments