Synchronous executor interface
Attila Kelemen
attila.kelemen85 at gmail.com
Sun Aug 6 22:25:14 UTC 2023
Alan Bateman <Alan.Bateman at oracle.com> ezt írta (időpont: 2023. aug. 7., H,
0:14):
> A connection pool for DB connections is a reasonable example where you
> might limit concurrency. It's finer grain than the number of threads, which
> I think is what your original message was trying to get to.
>
>
Well, yeah, as I wrote the DB was a bad example since almost always people
use connection pools there which solves the issue. However, that is not the
case for a lot of other things, such as limiting calls to an external
service, limiting the overall concurrent http calls, limiting the maximum
number of concurrent file processing, limiting the number of an arbitrary
concurrent processing to avoid too high concurrent memory usage (assuming
the processing requires considerable memory), and there can be a lot of
other things.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20230807/dc1f1a67/attachment.htm>
More information about the loom-dev
mailing list