Async Business rule impacting due to continuous thread execution with bulk jobs

nbireddy
Tera Contributor

HI Team,

 

Thanks in Advance!

 

"I have an inquiry regarding our scoped application's Asynchronous Business Rule (Async BR). Currently, this rule is consistently triggering whenever it matches its specified conditions.

The concern arises when a substantial volume of updates (e.g., 20,000 updates) is initiated simultaneously. This places a heavy load on our ServiceNow instance, with both nodes fully occupied by our Business Rule. Consequently, this is causing performance issues in ServiceNow.

Our goal is to limit the concurrency of this Business Rule. Specifically, we want to ensure that only two threads are processing it at any given time, regardless of whether it's triggered by a bulk job or a few updates. This will help alleviate the performance impact on ServiceNow."

 

please help with your suggestions .

nbireddy_0-1697261266405.png

 

1 REPLY 1

Danish Bhairag2
Tera Sage
Tera Sage

Hi @nbireddy ,

 

If i understand correctly whenever bulk load is happening (assuming via a transform map) u can uncheck the "Run Business Rule" checkbox in the transform map which will prevent any business rule to run whenever that specific bulk load is being executed. This will improve your performance. 

 

Also let's say there is some logic which needs to be executed whichever is written in your async business rule u can try to write that same logic in your transform map onAfter or onComplete script.

 

Mark my answer helpful & accepted if it helps you resolve your query.

 

Thanks,

Danish