Hi Rakesh,
There are Lot of ways to actually over come this , But I recommend using built-in rate limitation to avoid this problem. If not you can go with API gateways to manage this like AWS API gateway or Kong infront of mendix.For DB pool exhaustion specifically, increase ConnectionPoolingMaxActive in custom runtime settings and set ConnectionPoolingMaxWait to fail fast rather than queue indefinitely — this prevents thread pile-up under burst load.
I hope this helps!!