"How to Use Python HTTP Request to Send a Request with Long Poll? Best Practices?"

9 Replies, 1411 Views

Wow, thanks for all the tips, folks! I tried switching to `httpx` like someone suggested, and it’s been a game-changer for my python http request to send request with long poll setup.

Also, the logging tip with `structlog` is gold—already caught a few issues I wouldn’t have noticed otherwise.

Quick question though: anyone have experience with handling rate limits in long polling? I’m hitting some API limits and not sure if I should back off or just retry immediately. Thoughts?

Messages In This Thread



Users browsing this thread: 1 Guest(s)