cancel
Showing results for 
Search instead for 
Did you mean: 

Load on CAP API

sujitsingh5191
Explorer
0 Kudos

We need to check how many users can access an API built by a CAP application.

Or how many calls to an API we can make at a time for CAP APIs.

This is mainly to balance the load on the service. Is there any way SAP provides us to check that?

Accepted Solutions (1)

Accepted Solutions (1)

gregorw
Active Contributor
0 Kudos

I would suggest that you run a load test against one instance with different memory assignments to get a feeling how much traffic you app can handle. Then start testing the scale out scenario with additional instances.

Answers (1)

Answers (1)

martinstenzig
Contributor

Sujit, there is a lot of good stuff on the cap website (https://cap.cloud.sap/) as to how to improved load handling.

The three things I have used successfully are:

1. Probably the most important one is to adjust the default connection pool information https://cap.cloud.sap/docs/node.js/databases#pool

2. Memory utilization, memory parameter in mta module (https://help.sap.com/viewer/4505d0bdaf4948449b7f7379d24d0f0d/2.0.05/en-US/4050fee4c469498ebc31b10f2ae15ff2.html)

3. Number of instances: vial instances parameter.

You can then use the standard Kibana logging to track the impact on memory, database etc.