Web Workers

Are there any plans to add the ability to have web workers scripts?

I imagine it something like server connect actions except they can be run separately as web workers for heavy lifting background tasks.

Yes that is exactly what we plan to do. Add server connect like functionality client side in the form of web workers.

Those will be just flows but not page bound that execute in workers.

Useful for mobile apps, desktop apps and web apps without server side.


That sounds great! Any ETA on when web workers will be released?

It will actually also integrate service workers and their events, so it will be the perfect foundation for any PWA

No ETA yet however but we do hope to get to it in the next month or two.


Is something like this already possible on the server side or is that planned with this too?

Hey @George, just wanted to revive this request. I’m running into UI issues in my Capacitor app because the main thread is getting blocked by App Flow processing.

It would be great to have app flows run in web workers or, even better, as shared workers. With a shared worker I’m hoping I could maintain a single background task that processes data from an api. Even if the user navigates from one page to another page, the Shared Worker could persist and continue running on a schedule.

1 Like

Global App Flows should be easy to be run in a web workers, this was also our initial design. Will check with @patrick how for are we on this.


How will this potentially work @George - soon i’ll be looking at Bull Q’s, but perhaps we could build our own simplified version if we can extent App Flows into workers?

Will App Flows running in Web Workers help with this issue?

On top of App Flows running in web workers, I stumbled across this adapter for running Pouch in Web Workers as well.

1 Like