REST API Issue
I have a rest API Class used for getting data from Cache 2018 version.
I have single route '/callfuntions'
I send the following parameters to the API :- className, methodName, params
I use $CLASSMETHODto execute and send the result back to the client.
If I make more that 10 to 12 requests in quick succession, then it stops sending data.
if I wait for over 10 seconds it allows me to send more requests to the API. How do I resolve this?
Comments
Hi @Anil Mathew
It seems to be the concurrent users license behaviour.
There is a 10 seconds "grace period".
Check your kind of licence.
As I use IRIS, with a "core base" license, I haven't encountered this problem.
I never tested by myself, but maybe the parameter "UseSession = 1" can help you.
Take a look in the %CSP.REST class documentation.
If that was the case then the license consumed should have reached the maximum limit. It consumes only 1 unit of license. I will try the UseSession to check the impact.
Yes, and you should get a message in the “cconsole.log” file (limit license exceeded).
If there is no notification in the "cconsole.log" it's probably another problem.