Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
Hi All
I have noticed a new feature on services called 'Asynchronous' but after researching this feature I am unsure of what it does. There doesn't appear to be much/any documentation on this.
Can anybody please clarify?
Thanks
Ashley
Solved! Go to Solution.
Asynchronous services will create and execute in their own thread. They cannot have a return value since, when you run them the thread is created and runs independently on the platform. If called from within another service the calling service will not wait for the async service to complete. This can be very useful for long running services, especially ones on timers, that update background data structure or perform system maintenance tasks.
Asynchronous services will create and execute in their own thread. They cannot have a return value since, when you run them the thread is created and runs independently on the platform. If called from within another service the calling service will not wait for the async service to complete. This can be very useful for long running services, especially ones on timers, that update background data structure or perform system maintenance tasks.
Many thanks Adam, this is most helpful!
Curious about:
1. Does that mean that there is no guarantee of completing that activity in case of a catastrophic failure? Or are these activities persisted and retried?
2. How is resource usage controlled?
Vinay,
1. No, there is no guarantee of completion. The service thread will run but in the case of failure will no persist it's status and continue after recovery.
2. Resource usage is handled by the JVM just as all other transaction on the platform. Currently there is no direct view/control on the amount of resource usage, it is allocated based on the need of that service to execute and the settings of the JVM in Tomcat.
Thanks,
Adam