-
-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Look into tower as a replacement for deadpool + channels #36
Comments
Here is an example for how to wrap reqwest with tower: seanmonstar/reqwest#491 |
There's also https://github.com/antifuchs/governor. We could consider writing a middleware for tower around that. |
Also drafted a rate limit parser yesterday: https://github.com/mre/rate-limit |
While working on #33 I looked into existing libraries for network handling.
I even asked around on Twitter.
Turns out there is a neat little library called tower that was recommended by @shanesveller.
It handles many things that we currently do manually or not at all:
This part is particularly interesting:
(Sorry for quoting the entire thing, but I think it's quite rad.
AFAICT with that we can have some pool that optimizes network throughput.
If anyone has comments on the pros and cons of tower I'd love to hear them.
Perhaps somebody even wants to investigate and create a PR for it?
Help and feedback definitely wanted!
The text was updated successfully, but these errors were encountered: