cancel
Showing results for 
Search instead for 
Did you mean: 

How to Implement Load Balancing in SAP CAP Node.js on BTP?

fabi2295
Explorer
0 Kudos
314

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?

View Entire Topic
gregorw
SAP Mentor
SAP Mentor

Hi,

during normal operation you can use:

Application Autoscaler 

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

Beyhan
Product and Topic Expert
Product and Topic Expert

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.

fabi2295
Explorer
0 Kudos

Hi, gregorw, thanks for responding! So, if I just add new instances to my SRV, will the load balancing happen automatically?

Example:

fabi2295_0-1742212480070.png

 

fabi2295
Explorer
0 Kudos
Solution