on 2025 Mar 17 12:38 AM
What are the steps to implement load balancing for a Node.js application using SAP Cloud Application Programming (CAP) on SAP BTP to ensure high availability and avoid service downtime during high traffic flows, so that no service becomes unavailable or overloaded?
Request clarification before answering.
Hi,
during normal operation you can use:
to add additional instances when needed or shut down instances when not needed anymore. But be aware that in the Cloud Foundry enviornment the costs are calculated based on the maximum memory used at one time in the month.
During deployment you should check out:
Blue-Green Deployment of Multitarget Applications
Best regards,
Gregor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
please check this cost calculation example for the Cloud Foundry Environment to get an understanding about how cost are calculated. Additionally, Cloud Foundry has now support for the so called readiness health check, which is helpful in situation when an application instance is overloaded and cant process any new requests. A readiness health check can deregistered an overloaded app instance from request processing until it can take new requests again.
Hi, gregorw, thanks for responding! So, if I just add new instances to my SRV, will the load balancing happen automatically?
Example:
User | Count |
---|---|
88 | |
9 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.