Skip to content

Configure Connections

In this section we show how to set the connection properties related to the number of concurrent requests.

Configure a database connection

The i-refactory is capable of handling a high load of concurrent requests. However, the database should be able to handle this load as well.

Two properties can be set per Connection that determine the maximum number of concurrent requests that can be handled simultaneously: the maximum number of concurrent entity updates and the maximum number of concurrent requests.

Set the maximum number of concurrent entity updates

This setting determines how many entities can be updated simultaneously when external data needs to be processed. Setting this value to a very high number might lead to a decrease of throughput because the database might not be capable of handling the amount of load.
Setting the value to 1 will lead to processing exactly one entity update at once.

Info

Changing this setting has an immediate effect. Requests already running will obviously be completed. However, lowering the setting will put more tasks on the scheduled queue. Increasing the setting will start more entity updates or allows for more external requests.

Set the maximum amount of reserved entity updates

This setting determines the maximum number of reservations delivery agreements and deliveries can have for this connection. Reservations that exceed this number are not fulfilled whilst processing a delivery.

Set the maximum number of concurrent requests

This number determines how many restful calls can be made simultaneously to the i-refactory server.
These are requests such as : create a new delivery, get the status of delivery, retry a delivery, etc.
These requests are typically fast transactional requests that do not take a long time. So this value can be safely set to a much higher number than the number of concurrent entity updates.

Read more about reserving / limiting entity updates

What's next?