Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

These methods also returns the the Future handle in case you need them. The difference is that they invokes the callback as well when the Exchange is done being routed.

...

Suppose we want to call a HTTP service but it is usually slow and thus we do not want to block and wait for the response, as we can do other important computation. So we can initiate an Async exchange to the HTTP endpoint and then do other stuff while the slow HTTP service is processing our request. And then a bit later we can use the Future handle to get the response from the HTTP service. Yeah nice so lets do it:

...