Page 4 of 8

{"code":"SCSX009","description":"Script launch interval time has not elapsed"}

Posted: Mon Dec 30, 2013 5:16 am
by Igor

Sorry, no updates yet. It might take time before we can get back to you.


{"code":"SCSX009","description":"Script launch interval time has not elapsed"}

Posted: Mon Dec 30, 2013 5:54 am
by bahar.wadia

In the mean time, do you have any recommendations to improve performance for client-server app that uses Appery REST services?

Obviously, shuttling large data between the server and the app over the air is not a viable solution.

Thanks for you help in advance.


{"code":"SCSX009","description":"Script launch interval time has not elapsed"}

Posted: Mon Dec 30, 2013 6:26 am
by maxkatz

When you say Appery.io service - do you refer to Server Code script or a 3rd party API?


{"code":"SCSX009","description":"Script launch interval time has not elapsed"}

Posted: Mon Dec 30, 2013 4:02 pm
by William Bradee

I modified my test to just invoke the service back-to-back rather than in an AJAX callback. This works most of the time, but still intermittently gets the "Script launch interval time has not elapsed" error.

You can see from the trace a successful call with virtually no delay between calls.

Image

So the 300 ms fence is not stopping the call. This runs over and over without failing, but will intermittently fail.

It bothers me that it is intermittent -- it points to a bug. Either 300 ms policy enforcement is buggy, or there's some other timing error.

This issue is not blocking me. In case this helps someone else, I add this code as a workaround in service call error path to retry:

if (jqXHR.responseText.indexOf("SCSX009") 0){
// Retrying
Appery("svc2Status").text("Retry");
SVC2svc.execute({});
} else {
Appery("svc2Status").text("Error");
}


{"code":"SCSX009","description":"Script launch interval time has not elapsed"}

Posted: Mon Dec 30, 2013 7:52 pm
by maxkatz

Thanks for posting. I sent this to our dev. team so they can review more.


{"code":"SCSX009","description":"Script launch interval time has not elapsed"}

Posted: Tue Dec 31, 2013 3:46 am
by bahar.wadia

I mean both Appery REST database and server side scripts.

I am not using any 3rd party APIs


{"code":"SCSX009","description":"Script launch interval time has not elapsed"}

Posted: Tue Dec 31, 2013 3:50 am
by bahar.wadia

William, Thank you for helping diagnose this problem. I anxiously await a response from the Appery dev team.


{"code":"SCSX009","description":"Script launch interval time has not elapsed"}

Posted: Fri Jan 03, 2014 12:39 am
by maxkatz

Here is an update. Right now the burst limit for Server Code is about 3 requests per second. We will be changing it based on user's plan in the future. If this is important for you today, send us an email to a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and we can figure out something.


{"code":"SCSX009","description":"Script launch interval time has not elapsed"}

Posted: Fri Jan 03, 2014 3:51 am
by bahar.wadia

Based on your recommendation here ... https://getsatisfaction.com/apperyio/...

I restructured my application to take advantage of server side scripting. If the app is to be commercially viable, I have to be able to technically handle 1000s maybe more queries every second.

Is there a better/different solution to my problem.

I cannot be the only person with an app that stores images on the sever and then requests thumbnails as previews prior to downloading the original images.

What am I missing?


{"code":"SCSX009","description":"Script launch interval time has not elapsed"}

Posted: Fri Jan 03, 2014 6:38 pm
by maxkatz

Re: https://getsatisfaction.com/apperyio/...

We currently have two v8 nodes, so it is possible that two scripts would be invoked at the same time (one on each node).