Backendless Support
Waiting for user's response

Business logic - execution time longer in production


I've been testing my business logic in debug, all execute within 5 seconds. Longest is about 3.1 seconds.

Now I deployed the code to production and am getting errors in the logs saying execution has been terminated due to the time limit of 5 seconds.

Is there any reason it is seemingly executing slower in production?

Leave a Comment

Comments (1)


Hi Mitchell,

Different environments indeed can affect the execution time, but the difference is usually negligible. I'd suggest you to put some logging into your code to measure which calls consume the most time. This way we'll have more information to know where to look at.