Skip to content

Entrypoints ​

Our application is structured to handle various tasks efficiently. The API serves as the main interface for clients, while cron jobs automate routine tasks. WebSockets enable real-time interactions. Workers ensure that heavy tasks are processed in the background, enhancing the application's responsiveness and scalability.

This architecture allows for a modular approach, making it easier to maintain and scale the application as needed.

API ​

  • Definition: The API (Application Programming Interface) is the interface through which clients (such as web or mobile applications) communicate with your NestJS application.

  • Usage: This pod is exposed by the kubernetes ingress. It exposes various RESTFull endpoints for performing CRUD operations and other functionalities.

Cron Jobs ​

  • Definition: A cron job is a scheduled task that runs at specified intervals or times.

  • Usage: Useful for tasks like sending daily reports, cleaning up old data, or triggering other periodic processes without manual intervention.

WebSockets ​

  • Definition: WebSockets are a protocol for full-duplex communication channels over a single TCP connection.
  • Usage: Ideal for applications requiring live updates, such as chat applications, notifications, or collaborative tools.

Workers ​

  • Definition: Workers are dedicated processes or services that handle background tasks or processing jobs independently from the main application flow.
  • Usage: Suitable for tasks like processing large datasets or running computationally intensive operations without blocking the main application.