Slow Webhook response performance + High CPU

Hello Guys,

  • when a webhook is invoked by postman the response is 1500-1600ms and the CPU usage is at this moment verry high for 1 process.
  • When i look at the execution time in n8n its only 0.053sec.

Webhooks are called via https if this makes any difference.
How can i improve the performance for webhooks and workflows?

1 Like

Welcome to the community.

Yeah, because by default a new process is created with each request. You can change this behavior by adding the env variable export EXECUTIONS_PROCESS=main.


The Performance difference is incredible!
Postman response before: 1500-1600ms
Postman response now: 40-50ms

Thank you!

Is there any benefit that the default setting for multi threads have?

Yes, the advantages are actually explained in the same topic here:

1 Like

Thanks. I got a massive performance improvement with this.

The executions times went from the 6s-7s down to ~1s just with this. I can say that it’s reducing at least 4s of time just by changing this.

This is a lifesaver as we have a hard limit from the calling part of the webhook to reply within 5 seconds or it times out.

We will also soon merge this:

So if you have a lot of executions that should run in parallel you will be able to scale n8n like that across different machines.

1 Like