I am looking to implement a web server that will receive streaming data for all US Equities (approximately 10,000). I was wondering if there are any particular infrastructures that are best suited for this. I was planning to use a Gunicorn server with Gevent.
One bottleneck would be to save this data to a database. Would it be better to save data first to a Redis stream and send it by batch to the database to avoid overloading the CPU? Saving directly every WebSocket message for every stock would require too much resources.