You’re absolutely right that Custom Events can be helpful for creating sequential workflows in some cases, particularly when everything operates within a single workflow. However, the “Filler Bucket” method is specifically designed for scenarios where backend workflows must operate across multiple steps and datasets, especially when dealing with:
- Large lists or external API calls: Custom Events don’t support iterating through large lists of items sequentially without triggering everything at once. My method ensures that each item is fully processed before the next starts, avoiding race conditions or partial updates.
- Cross-trigger dependencies: Custom Events are limited to the scope of a single workflow and can’t easily handle scenarios where workflows depend on triggers or data changes from other workflows.
- Dynamic lists and statuses: My method allows dynamic tracking of each step’s progress through the
BucketFiller and BucketManager system, which is crucial when processing lists where the length or complexity varies.
In essence, while Custom Events are great for linear workflows within a single execution, the “Filler Bucket” method is better suited for complex, multi-step workflows with asynchronous dependencies, large data operations, or when strict sequential processing is required across multiple backend workflows.
This is just my opinion, but in my case and my uses (calling microsoft azure API, sending sms/mail to the customer, creating/modifying data, etc…) this method has proved to be the most effective. 