builtins: add get-many concurrent HTTP fan-out#205
Merged
Conversation
ab90b62 to
9beb925
Compare
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
9beb925 to
10123a6
Compare
Agent tools regularly need to fetch N URLs in parallel - rate-limit windows on remote APIs make serial gets a bottleneck. get-many urls fans out concurrent HTTP GETs and returns the responses in input order. Errors per URL are returned in-line, not raised, so partial batches still produce useful output. Opcode allocated: get-many. Backed by tokio with a bounded semaphore (default 16) so a 10k-URL list does not blow the connection pool.
10123a6 to
afb9553
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent tools regularly need to fetch N URLs in parallel. Rate-limit windows on remote APIs make serial gets a bottleneck.
Implementation:
Tests: cross-engine regression tests + examples/get-many.ilo with -- run: directives.