Is there a limit on how many request a reslet can receive at one time or in quick succession? If processing takes 1 minute, do the subsequent requests queue?
m
michoel
01/14/2020, 8:26 AM
@Craig 5 concurrent requests, plus 5 for each SuiteCloud+ licence. Requests won't queue, they will just return an error.
michoel
01/14/2020, 8:28 AM
You can get around the limit by using a public suitelet with your own authentication instead of a restlet (no concurrency limit is enforced as far as I can tell).
👍 1
c
Craig
01/14/2020, 2:23 PM
We will probably receive more than 5 fulfilment JSON messages at once, or very close to each other. It Looks like we have one suitecloud plus license though so that gives us 10 concurrent messages. If the client can resend the message on failure then maybe we can avoid having to use middleware
Craig
01/14/2020, 2:34 PM
Looks like Suitelet is a bad option due to the endpoint being public even if you implemented some sort of custom auth and it has overall a lower governance limit.
Craig
01/14/2020, 3:03 PM
Looks like celigo doesn't allow for receiving JSON messages, it wants to poll for them which is something the 3pl's custom WMS doesn't support so I'm trying to persuade myself doing this without middleware to handle queueing and resending is ok.
m
michoel
01/14/2020, 9:08 PM
Another thing you can try is if your restlet is taking 1 min to run, you can have it trigger a background script (Map/Reduce or Scheduled Script etc) and return immediately which will allow it much more invocations per minute.
c
Craig
01/14/2020, 11:02 PM
That's a good idea. I'll take a look at how I can get the restlet to return immediatly. Thanks!