Written by

Question Anil Mathew · May 18

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?

Product version: Caché 2018.1
$ZV: Cache for Windows (x86-64) 2018.1.3 (Build 414U)

Comments

Lorenzo Scalese · May 18

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.

0
Anil Mathew  May 18 to Lorenzo Scalese

Hi @Lorenzo Scalese 

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.

0
Lorenzo Scalese  May 18 to Anil Mathew

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.

0