Environment when running multiple endpoints within a service at the same time

Hi,

As specified in the title, when multiple endpoints within a service are scheduled to run at the same time, do they share the same environment (ie Service Variables and runtime)?

If not, how is this handled? Are they queued up to run one after the other? Or are they run as parallel instances each with their own environment?

1 Like

Hello!

Multiple endpoints of the same service executed at once (e.g. 2 schedules starting the same time, triggering 2 endpoints of the same Service) do not share anything. They behave as if two different services were executed.

Services may run in parallell. 2-3 may run in parallell (horizontal scaling), but depending on the amount of IO each instance require - sometimes more (“feature” of node/javascript). If no instances are available, the service execution will queue.