Skip to content
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

Leverage concurrent HTTP Get requests with asyncio #4

Open
tpiekarski opened this issue Jun 17, 2020 · 2 comments
Open

Leverage concurrent HTTP Get requests with asyncio #4

tpiekarski opened this issue Jun 17, 2020 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@tpiekarski
Copy link
Owner

tpiekarski commented Jun 17, 2020

Overview

Sending HTTP Request should happen concurrently with multiple threads using asyncio to save time when dispatching requests for hundreds or thousands of URLs. The distribution and amount of threads should be decided by the runtime and not calculated manually ahead.

Use asyncio when you can, threading when you must.

Links

@tpiekarski tpiekarski added enhancement New feature or request help wanted Extra attention is needed labels Jun 17, 2020
@tpiekarski tpiekarski self-assigned this Jun 17, 2020
@tpiekarski tpiekarski removed their assignment Jun 17, 2020
@tpiekarski tpiekarski pinned this issue Jun 17, 2020
@tpiekarski tpiekarski changed the title Leverage concurrent HTTP Get requests Leverage concurrent HTTP Get requests with asyncio Jul 9, 2020
@tpiekarski tpiekarski self-assigned this Jul 21, 2020
@tpiekarski tpiekarski removed their assignment Aug 8, 2020
@tpiekarski
Copy link
Owner Author

Migration from requests to aiohttp finished. But using asyncio.gather(...) is not working like expected.
Requests do not get sent concurrently, instead they're sent sequentially.
Something is not right... 😞

@tpiekarski
Copy link
Owner Author

Additional resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant