Self-Hosters, Come Celebrate the Speed & Light CPU usage of Our New Execution Mode! 🎉

Hi Everyone,

Runs are now at least 3X faster :exploding_head: What happened?

We’ve been working on a large refactor to upgrade our engine and infrastructure, and here are the details, Thanks @shahedmashni for helping!

:video_game: A new execution mode

We introduced a new execution mode on the self-hosted versions of Activepieces. This mode will be able to process runs much faster. Starting from Activepieces 0.29.0 you’ll be on this execution mode by default and enjoy unprecedented execution speed.

:running_woman: How fast is it? How CPU intensive is it?

The overhead for running a basic webhook and returning an HTTP response used to be ~2,000ms. It now takes around 600ms, with the fraction of the CPU usage.

Before

Flows per second: 3.20 [#/sec] (mean)
image

After

Flows per second: 14.50 [#/sec] (mean)
image

:arrow_forward: Future work

There is still some overhead due to the data and calls that workers make to the backend. These can be heavily cached, reducing the timestamp and increasing throughput.

:bulb: How to use it

Starting from 0.29.0, you don’t have to change anything, this execution mode is the default one. If you’re on an older version, just upgrade to 0.29.0 when it comes out this week, or use the pre-release version 0.29.0-rc.1.

You need to set the AP_EXECUTION_MODE Environment variable: to UNSANDBOXED: Environment Variables - Activepieces

:nerd: Technical Details

If you’rd like to geek out and dig into the technical details about our new architecture and sandboxing, we’ve put it together on the following pages:

2 Likes