API Limits
There are no strict limitations on the number of API calls, but the architecture of the server and the nature of the requests determine the practical limits.
The frequency of requests that can be processed depends on several factors:
- Endpoint Specifics : Different endpoints handle requests based on their design and function.
- Request Duration : The time taken to process each request impacts the overall throughput.
Most requests typically query the database. The limiting factor is the number of available database connections in the pool. The longer an HTTP request takes, the longer a database connection is occupied – the number of available connections for parallel requests is reduced.
How to Improve Throughput
Pricefx offers various methods to optimize HTTP request throughput:
- Formula Executor Service : This can be used to optimize the execution of logics – see the formulamanager.executeformulaservice endpoint.
- Caching Stategies : Implementing caching mechanisms can improve response times and reduce database load – see the Caching Strategies in Configuration article.
- Horizontal Scaling : To increase the database connection limit per pool you can add more "nodes" (pods).