Where and How does the Rest API request stores in queue before it gets processed? how it can be customized to process only each rest API one at a time?

Gowri S
Tera Expert

During race condition, when same Rest API is concurrently called, we are facing issue which ends by with same response.

If more then one request of same API with same parameters comes to ServiceNow at same time we want to process one after other. So want to understand how the Rest API is stores in queue and proceed in OOTB and how we can handle for our customization to process the Same API request with same parameter one by one.

3 REPLIES 3

Ashutosh Munot1
Kilo Patron
Kilo Patron

HI,

If you use MID Server then it is via ECC Queue table. MID Server will process them one by one.


Thanks,
Ashutosh

Gowri S
Tera Expert

Thanks Ashutosh for responding.

We had created Scripted Rest API and not sure about MID Server. Is there anything we can work over MID Server for Rest API? Could you please guide me?

Hi Gowri,

If you are referring to 3rd party consuming ServiceNow endpoint; please check below links:

https://community.servicenow.com/community?id=community_question&sys_id=b8b20defdb1fbf005129a851ca96...

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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