I'm trying to figure out the best architecture to support connections to thousands of websockets alongside a managing HTTP server.
I want to be able to manage all of the connections through the HTTP server with minimum complexity.
Ideally, I am trying to merge:
- An existing proprietary python library that uses the
websockets
package - A
connexion
(Flask-OpenAPI) application framework
Can these parts fit together?
Also, could this run under a WSGI server gracefully or must I transition to ASGI?
Any assistance, tips or pointers would be much appreciated. Thanks