Synchronous executor interface
Attila Kelemen
attila.kelemen85 at gmail.com
Sun Aug 6 21:27:06 UTC 2023
Robert Engels <rengels at ix.netcom.com> ezt írta (időpont: 2023. aug. 6., V,
23:16):
> That is not the way you would configure the db - that leaves you open to
> east DDoS attacks. Relying on well behaved/configured apps is the wrong way
> - you prevent/balance this at the database.
>
> The reason you wouldn’t add it is like all resources like this - you are
> trying to control it at the wrong location.
>
> Controlling the number of concurrent threads to control the number of
> requests to a resource is simply wrong. You do it at a lower level
> (semaphore, etc) or in the resource itself.
>
You have to put limitations on both sides. Just because the external
service (such as the DB) protects itself from ddos (accidental or not)
doesn't mean that applications don't have to be well behaved and limit the
pressure they put on the service. In fact - in a lot of cases - the
protection you are talking about is that the service will just outright ban
your IP (in less severe cases, it will just return a failure which will be
a lot more awkward to handle than if you made your app well-behaved). This
is something you have to avoid at app level.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20230806/78c81615/attachment.htm>
More information about the loom-dev
mailing list