Hey! So, I’ve been in a similar spot trying to asynchronously send information to two APIs without blocking the main thread. What worked for me was using Python’s `asyncio` library with `aiohttp`. You can fire off both requests at the same time using `asyncio.gather()`, and it handles the async stuff pretty smoothly.
For retries, check out `tenacity`—it’s a lifesaver for handling errors and retries without making your code a mess. As for rate limits, I’d suggest using a token bucket or leaky bucket algorithm to pace your requests. Tools like `ratelimit` in Python can help with that.
Good luck!
For retries, check out `tenacity`—it’s a lifesaver for handling errors and retries without making your code a mess. As for rate limits, I’d suggest using a token bucket or leaky bucket algorithm to pace your requests. Tools like `ratelimit` in Python can help with that.
Good luck!
