Skip to content

Multi threading / Clustering #1067

Open
@MickL

Description

@MickL

I have already opened an issue about multi threading two years ago: nestjs/nest#248

Now I am back at the exact same thing. I am wondering how to have the NestJS app run on multiple cpu cores at the same time.

Use case: Socket.io connections can be split up per core to accept more concurrent connections.

It would be nice if this works either out of the box, maybe with worker threads for easier communication between the cores, or at least have an explanation how to do so in the documentation.

If someone could give me hints how to archive this, or if there might be some pitfalls, I could write the documentation page.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions