After and Async BR

Priyanka_Ghosh
Tera Contributor

Hello,

 

Could anyone please tell me the difference between After BR using gs.eventQueue() and Async BR.

Is there any difference or is it the same. Explanation with example will be appreciated.

 

-Thanks.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Priyanka_Ghosh 

After BR + event + script action == Aysnc BR

Both will run asynchronously and won't impact the user transaction and user experience

explanation here

https://www.servicenow.com/community/now-platform-forum/difference-between-asyn-and-after-business-r....

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

6 REPLIES 6

Sandeep Rajput
Tera Patron
Tera Patron

@Priyanka_Ghosh 

 

Here are the key differences 

Screenshot 2025-01-28 at 6.01.38 PM.png

Robbie
Kilo Patron
Kilo Patron

Hi @Priyanka_Ghosh,

 

Direct from the ServiceNow (Business Rules Technical Best Practices) doc:

"Async Business Rules are similar to after rules in that they run after the database commits a change. Unlike after rules, async rules run in the background simultaneously with other processes. Async Business Rules allow ServiceNow to return control to the user sooner but may take longer to update related objects."

 

See here for more detail: https://developer.servicenow.com/dev.do#!/guides/xanadu/now-platform/tpb-guide/business_rules_techni...

 

To help others (and for me to gain recognition for my efforts), please mark this response correct by clicking on Accept as Solution and/or Kudos.




Thanks, Robbie

Ankur Bawiskar
Tera Patron
Tera Patron

@Priyanka_Ghosh 

After BR + event + script action == Aysnc BR

Both will run asynchronously and won't impact the user transaction and user experience

explanation here

https://www.servicenow.com/community/now-platform-forum/difference-between-asyn-and-after-business-r....

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar ,

 

As stated by you --> "After BR + event + script action == Aysnc BR",

So, can I conclude that there is no difference since both the BRs will run asynchronously in such a case? 

And probably this can be one of the alternatives to convert After (synchronous) BR to Async BR, correct?