Long polling is such a rabbit hole, but it’s so useful. One thing that helped me was using `websockets` alongside long polling for real-time updates.
For testing, I use `pytest-asyncio` to test my python http request to send request with long poll setup. It’s a bit of a learning curve, but totally worth it.
Also, don’t forget to use `timeout` in your requests. It’s easy to overlook but super important.
For testing, I use `pytest-asyncio` to test my python http request to send request with long poll setup. It’s a bit of a learning curve, but totally worth it.
Also, don’t forget to use `timeout` in your requests. It’s easy to overlook but super important.
