API load Fail

0
Hi Experts,We have published a REST API from Mendix consumed by multiple third-party clients. Under high load we are seeing database connection pool exhaustion. how to handle this thanks in advance
asked
1 answers
1

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!!

answered