I was wondering how many threads can app engine support since I need it to calculate how many WebSocket connections I can support per instance.
Somewhere I read there are no threads, somewhere that you can use but no max number listed.
So can a single app engine instance support for example tomcats default 200 threads?
And if not what GCP service do you recommend for hosting such an app?
CodePudding user response:
To create a connection with websocket
you can have a look at this documentation.
And about the number of thread limits, you can specify by defining max_concurrent_requests
as discussed in similar thread. It is also defined in the document, that the maximum limit of max_concurrent_requests
is 1000.
If you are willing to check on other services provided by GCP, you can choose Cloud run
or Google Kubernetes engine for containerized applications as mentioned here and also you can consider an option of installing tomcat on virtual machine.