Skip to main content
1-Visitor
March 14, 2016
Question

How to mark a service as asynchronous using the Edge SDKs?

  • March 14, 2016
  • 1 reply
  • 3723 views

We have some services that take some seconds to complete. I would like to be able to mark these services (that have no returne value) as being asynchronous and have them treated as such by calls from a Thingworx mashup. Is there a way to do this or are all services running on real devices (using the edge SDKs) considered to be synchronous?

Thanks - Brad

1 reply

1-Visitor
March 14, 2016

But by the way, you can implement it as asynchronous and send an event when it's done. For TW Asynchronous meas that it puts it's execution on a internal Queue, but it's not the case on a remote service, it doesn't makes any sense.

brsmith1-VisitorAuthor
1-Visitor
March 14, 2016

Why do you say it doesn't make any sense on a remote service?

1-Visitor
March 14, 2016

I mean for TW platform, yes on the remote service it makes totally sense to have a Async service. But TW doesn't cares, it's not their responsibility to manage it's execution.