Timers vs BPT vs Light BPT: A comparison of which to use when in OutSystems

If you don’t use the right tool to process your asynchronous tasks, it can easily become a bomb about to explode

Timers

  • Can be scheduled in three different ways, via service studio (1st picture), via service center (2nd picture) or the schedule can be dynamically set through the application (3rd picture), you can also schedule it to run when you publish the module:
Scheduling a timer via service studio
Scheduling a timer via service center (Go to modules -> Click on your module -> Go to timers tab -> Click on your timer)
Dynamically changing timer's schedule
  • Have a default timeout (20min) but that can be changed if it is needed, even though this is not recommended for most of the cases. You can also change the timeout of the timer using the above screens.
  • It is not possible to run multiple instances of the same timer in parallel in the same front-end server unless your timer is multi-tenant and you run it for multiple tenants.
  • Timers holds one single server action as its executable task.
  • You can wake up a timer manually by calling the WakeYourTimerName action, you can find these actions underneath the timer itself.
  • It is possible to run the timer manually by clicking on the “Run Now” button on the service center (see picture 2 above).

Business Process Technology (BPT)

  • Each automatic activity has a default timeout (5m) that cannot be changed.
  • OutSystems platform logs pretty much everything that happens with a BPT process, you can find more about it here.
  • The processes tab in service studio has its own toolbox:
  • You can launch a process either by selecting a data action in the Launch On property of the process (1st picture) or launch it manually by dropping the launch process action anywhere in your logic (2nd picture):
Launch On Property
Launch Process Action
  • BPT processes can run 10 parallel threads per server by default.
  • Is able to execute multiple tasks in the same BPT flow.

Light BPT

  • Light BPT can run up to 20 parallel threads per server by default.

Ok! You have mentioned a lot of tools, but what now? How do I know which tool I need to use?

--

--

--

OutSystems MVP, passionate about sports and a tech lover for sure! :)

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Setup SFTP-only user for accessing Drupal’s public files on Ubuntu 22.04

Setup SFTP-only user for accessing Drupal’s public files on Ubuntu 22.04

Get bugs fixed faster with the right description

Unboxing AWS Panorama computer vision appliance | First look at AWS Panorama computer appliance

Developer Spotlight: Chris Schwab with Life is Good

Auto Explain Decision Tree Logic

How to Deploy React App to Production

How to renew your code-Sign certificate if you lost your private key

My Journey to Starting Coding BootCamp

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
William Antunes

William Antunes

OutSystems MVP, passionate about sports and a tech lover for sure! :)

More from Medium

Adobe’s New 2022 Technology Releases

Lesson learned from developing my first OutSystems project

Queries and Indexing in AEM

T3s connection from Mulesoft to Web logic JMS server