Custom Business Logic Async Call

How do you create custom business logic service that is asynchronous? And then how do you call it? I’m using Java to create my custom business logic and generating the javascript sdk to comsume it.

Hi Phil,

What will be the difference between a synchronous and asynchronous service?

An Asynchronous service will be faster because it won’t have to wait for a call to complete before starting to execute the next one. Should I be using async calls in the Java service or just call the service asynchronously using JavaScript?

Hi PhilJust call the service asynchronously by passing a Backendless.Async instance as the last argument of Backendless.CustomServices.invoke method
This way you will not freeze the UI during service method invocation