Worker Pool implementation to limit amount of requests happening in parallel #97
freakytoad1
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since Go is pretty good at concurrency and API calls are relatively slow, it makes sense to do concurrent calls to a PAN device to get more information in a shorter amount of time. Though through testing a looking at pan docs terraform recommendations, the highest the concurrent calls should get is around 5.
My Request: accept an input when making a new Client in PanGo that limits the number of concurrent calls to the amount requested. And maybe default to 5 if not requested. In my scripts that use PanGo I've been using a Worker Pool implementation to achieve this but would love if this was built-in to the client already. Would save a lot of repeated code. Really nice explanation here
Beta Was this translation helpful? Give feedback.
All reactions