cortip/isomera

Create a separate worker launch script

开放

#66 创建于 2023年11月18日

 (0 条评论) (0 个反应) (0 位负责人)TypeScript (6 个派生)auto 404
back-endgood first issue

仓库指标

星标
 (19 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

We have 1 Nest.js project for API, we will need workers too, obviously. Implement a way to build and run this app in either API or Worker mode. Create separate build processes, which would allow deploying into separate instances.

How we will be using this later?

Imagine a docker image build with all node and nest.js necessities which would start api project. We would build 2 of those, where one last command will be different - whether it's api or worker/scheduler is started.

We do not want workers running on an actual API server, because that would consume too much memory, would not be scalable properly and would just make it slow. Seaparating it would mean we can run it separately ;)

Acceptance criteria

  • app/api project can be started with scheduler active
  • app/api project can be started with scheduler inactive
  • It is documented in docs/ how it works and how to run in those two modes

贡献者指南