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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2020 01:01 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2020 01:06 AM
HI,
If you use MID Server then it is via ECC Queue table. MID Server will process them one by one.
Thanks,
Ashutosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2020 01:34 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2020 02:24 AM
Hi Gowri,
If you are referring to 3rd party consuming ServiceNow endpoint; please check below links:
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader