Use cases

Hi,
Can you please provide some use cases for Queue based triggers where exactly they would be needed?

Thank you,

@A_Learner,

Imagine, you have dispatcher to clean, validate input data and the ad to the queue. There is chances that there is no valid data to add to the queue at that perticular run. In this case, if we have setup performer as queue trigger, as there are no queue item to process, perfomer bot will not be trigger.

This will ensure efficiency of the bot usage. With time trigger it would have run even there is no queue items.

Queue triggers and time triggers serve different purposes, each suited to specific automation scenarios. Here are the benefits of a queue trigger over a time trigger:

  1. Real-time Automation: Queue triggers allow processes to run immediately when new items are added to a queue, leading to faster, real-time processing compared to scheduled intervals with time triggers.

  2. Resource Efficiency: Queue triggers run processes only when new queue items are available, which optimizes resource usage. Time triggers may start a process even if there are no new items to process, potentially wasting resources.

  3. Scalability: Queue triggers scale better with workload. If the queue is flooded with items, more robots can be deployed to process them, while time triggers follow a fixed schedule that may not account for sudden workload spikes.

  4. Flexibility: Queue triggers offer better flexibility for handling dynamic workloads since they trigger based on the number of items in a queue. Time triggers operate on a fixed schedule, which may not align with varying business needs.

  5. Error Handling and Retries: Queue triggers can automatically retry failed transactions according to predefined rules. Time triggers don’t provide direct integration with transaction-based retry mechanisms.

  6. Prioritization and SLAs: With queue triggers, you can prioritize certain items or set SLA deadlines for when items need to be processed, while time triggers don’t have built-in support for prioritizing queue items.

  7. Monitoring and Alerts: Queue triggers are tied to the queue, making it easier to monitor the exact moment when items are added and processed, and triggering alerts when thresholds are breached. Time triggers require separate monitoring logic.

These features make queue triggers ideal for event-driven processes, while time triggers are more suited for processes that need to run at regular, predetermined intervals regardless of queue status.

LLM helped me to write this but it’s validated by me.

Thanks,
Ashok :slightly_smiling_face:

1 Like

@ashokkarale
Is this specific to queue triggers? If we have REframkework with time trigger processes, can we not have all the advantages of queues, including retries? Thanks a lot,

@A_Learner,

It will work for both time and queue trigger as retry mechanism we configure at queue level so it doesn’t matter how the performer got triggered.

Thanks,
Ashok :slightly_smiling_face:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.