Hello! I would like to ask if anybody has an idea ...
# ask-community
v
Hello! I would like to ask if anybody has an idea regarding this concern. The concept: I have created a flow that runs for a list of users. For every user I perform some calculations and then I forward the calculated results via HTTP to a context broker. The concern: If I introduce more users, is there a chance that using mapped tasks could potentially "flood" the context broker with requests? If this could be the case, should I use a small sleep time for each mapped request tasks(I can't say that I like this idea). But I would love to hear if someone has a better idea. Thanks in advance!!!
r
Hey ! Have you looked at concurrency limits ? 🙂 https://docs.prefect.io/latest/guides/global-concurrency-limits/ This ensure a max number of running tasks
v
@Robin Niel Thanks a lot for pointing this out! I am ashamed to admit that I haven't, so now is the time to check it!
r
No problem, that’s why I was asking. It does what you want without having to hack a solution. We have been using those in production and not encountering any issue. feel free to ping me if you have any question ^^
🙌 1