Question
Cognizant
Cognizant
IN
Cognizant
Posted: 21 hours 22 minutes ago
Last activity: 10 hours 44 minutes ago
Last activity: 27 Nov 2025 17:01 EST
How to process files using File Listener with parallel processing across multi-node setup for better performance?
We have a requirement where files are processed using a File Listener. Based on a property in the XML file:
- If it is the first instance for the day, a new case should be created.
- Subsequent files with the same property value should merge into the existing case.
Currently, when multiple files are placed at the same time, multiple cases are being created due to a race condition.
Constraints:
- We want to enable parallel processing and leverage a multi-node environment for better performance.
- The solution should be maintainable in production.
Questions:
- How can we avoid this race condition in Pega?
- Are there any alternative design patterns or best practices for handling such concurrency issues?