Want Advice: Scaling Realtime Web Game (NestJS or NextJS)
Unanswered
Balinese posted this in #help-forum
BalineseOP
I've decided to take my chances and work on a real-time web game that I've always wanted to make. I want to base the framework around React, and was wondering what technology I should use. There are of course many things I'm thinking about (profiling/logging/etc.) but here I am curious on what backend tool I should use. I am deciding between using NextJS and NestJS.
Activities Involved for Users
- ~100s client => server websocket connection
- peer 2 peer (i want both so I don't have to handle costs for smaller matches)
My main focus atm is responsiveness. My initial answer to this is NestJS, but would like to gather more opinions, and tips regarding using NestJS with NextJS (I will use NextJS either way and maybe just let it handle CRUD operations, but ofc NestJS will turn this into a complete monorepo and I want to think about this now).
Activities Involved for Users
- ~100s client => server websocket connection
- peer 2 peer (i want both so I don't have to handle costs for smaller matches)
My main focus atm is responsiveness. My initial answer to this is NestJS, but would like to gather more opinions, and tips regarding using NestJS with NextJS (I will use NextJS either way and maybe just let it handle CRUD operations, but ofc NestJS will turn this into a complete monorepo and I want to think about this now).
2 Replies
@Balinese I've decided to take my chances and work on a real-time web game that I've always wanted to make. I want to base the framework around React, and was wondering what technology I should use. There are of course many things I'm thinking about (profiling/logging/etc.) but here **I am curious on what backend tool I should use.** I am deciding between using **NextJS and NestJS.**
**Activities Involved for Users**
- ~100s client => server websocket connection
- peer 2 peer (i want both so I don't have to handle costs for smaller matches)
My main focus atm is responsiveness. My initial answer to this is **NestJS**, but would like to gather more opinions, and tips regarding using NestJS with NextJS *(I will use NextJS either way and maybe just let it handle CRUD operations, but ofc NestJS will turn this into a complete monorepo and I want to think about this now).*
this sounds like you need a long-running server process, I don't think Next.js is a good option for that so between these two options I would choose NestJS
Agree with @Rafael Almeida