I would like to get some advice regarding the recommended architecture and best practices for a Dispatcher/Performer setup in UiPath.
I have a process where I need to retrieve input data from an application and then load this data into an Orchestrator Queue.
I see two possible approaches:
Approach 1 – Data retrieval and queue loading within the Dispatcher
The Dispatcher would:
Connect to the source application.
Retrieve the input data, for example into a DataTable.
Validate/prepare the data if necessary.
Add the required items directly to the Orchestrator Queue.
The Performer would then retrieve the Queue Items and process them.
Approach 2 – Separate data extraction process
A first robot/process would be responsible only for retrieving the data from the source application and storing it somewhere, for example in an Excel file or DataTable.
Then, a separate Dispatcher would read this data and only be responsible for loading the items into the Orchestrator Queue.
My questions are:
Which approach is considered the best practice in UiPath?
Should the Dispatcher normally be responsible for both retrieving the input data and loading it into the Queue?
In which situations would it be preferable to create a separate process for data extraction before the Dispatcher?
Does separating data extraction from queue loading provide any real architectural advantage in terms of scalability, maintainability, error handling, or reusability?
If the data extraction itself involves connecting to an application and performing several business steps, would that be a reason to separate it from the Dispatcher?
I am particularly interested in understanding the recommended architecture for a production environment, rather than simply what is technically possible.
Go with approach 1. That’s basically the definition of a dispatcher — pull the data, drop it in the queue. Writing it out to an Excel file and reading it back in a second process just gives you one more thing that can break, and if it breaks halfway you’re stuck reconciling a file by hand.
The times I’d actually split it:
the extraction itself is a real process (log in, request a report, wait for it, several screens per record). At that point it isn’t extraction, it’s Process A, and it deserves its own queue. Last step of its performer adds items to your second queue.
extraction and loading need different schedules or different machines
someone has to approve the data before it becomes work
If your reason for splitting is reusability, make the extraction a library and invoke it. You don’t need a separate process for that.
Two things that matter more than this decision anyway: set a unique Reference on your queue items so a re-run after a crash doesn’t create duplicates, and make the dispatcher shout when it loads 0 items. Silent empty loads are the ones nobody catches until the next day.
Hi @nada.bouayyady1 for standard best practice use Approach 1 but for specific edge cases you can use Approach 2.
If those edge cases of yours require long-running workflows like DU, ETL, or severe rate limiting, then it would be suitable because they introduce new, complex elements.
Approach 1 is the standard, recommended REFramework pattern. The Dispatcher is defined as extraction + validation + queue-loading in one process.
Here are the answers for your questions:
When should extraction be separated into its own process?
– Extraction is heavy/complex UI automation
– Multiple Dispatchers need the same data
– Extraction and loading run on different schedules/triggers
– A human approval step is needed between extraction and load
– Source system connection overhead is high and shouldn’t repeat per run
Does separation give real architectural advantage?
– Scalability: Helps only if multiple consumers share the data, or extraction/load need independent scheduling. Otherwise neutral.
– Maintainability: Helps only if extraction logic is complex enough to justify separate testing/versioning. For simple pulls, it’s just extra overhead.
– Error handling: Real benefit, staged data gives a retry point; failed loads don’t require re-extraction.
– Reusability: Real benefit only if multiple downstream processes consume the same extracted data.
Is complex extraction logic alone a reason to separate?
Yes, if extraction involves multiple business steps, treat it as its own process rather than folding it into the Dispatcher.