Can I limit the rate of outbound REST message

ydai
Mega Contributor

Hi,

I'm implementing outbound REST message from ServiceNow instance to another server in scoped application. I want to add a rate limit to restrict the frequency of REST messages sent out, for example, 5 REST message per second, so that it won't bring a high load on the server side. Is there any way to achieve that?

Thanks,

Yi

1 REPLY 1

henry_cheng
ServiceNow Employee
ServiceNow Employee

Hi Yi,



AFAIK there is no such settings in ServiceNow. Creating/Sending a REST message is just a transaction and system will control it automatically for you.


ServiceNow has an approach called semaphore to control the rate how many requests it can handle at the same time. Once the concurrent jobs exceed the number of semaphore then system will put them in a queue and pick up once any semaphore is ready again. You don't need to control it by yourself.



When you send REST message out it can be synchronous or asynchronous depending which API you are using. If you are using MID server to send out REST messages then all the messages will be put into a ECC queue first. System will process it based on FIFO (First In First Out) mechanism.



Cheers


Henry