Backend System

The backend system is composed of Nest.js-based servers with a module structure. Each function has one Nest module, and these modules combine to form one server. These servers form a cluster that provides services.

Backend Module Structure

Each data has one module, and the module contains constant, document, service, and signal.
image

Backend Server Cluster Structure

These modules are combined to form a server. The server is operated in federation mode and batch mode.

Federation mode is a structure that can be horizontally scaled so that requests from the frontend can be distributed. Batch mode is a structure that only uses one container in the cluster and processes periodic and security operations.

All servers with two modes are connected to one to three mongodb databases and redis cache servers and share memory to operate services.
image
Related contents: Master system infrastructure, DevOps system, Domain-level modules
Released under the MIT License
Official Akan.js Consulting onAkansoft
Copyright © 2025 Akan.js. All rights reserved.
System managed bybassman