diff --git a/guide/chaining_functions.md b/guide/chaining_functions.md index c5f89a48486bdbab22baae7b6e7ed71913fb610d..a4108f3d700c3a609e05680a50c609873837f62f 100644 --- a/guide/chaining_functions.md +++ b/guide/chaining_functions.md @@ -79,3 +79,15 @@ GitHub sends a "star" event to tweetfanclub function, tweetfanclub uses get-avat This example uses a mix of regular binaries such as ImageMagick and Python handlers generated with the FaaS-CLI. * [GitHub to Twitter Fanclub](https://github.com/alexellis/faas-twitter-fanclub/blob/master/README.md) + +## Asynchronous call-backs + +If you invoke a function asynchronously you have two options for getting the result back: + +* Update the function + +You can update your code to call another function / store state in another service + +* X-Callback-Url + +If you set a header for `X-Callback-Url` then that will be invoked after the function has run, [read more](https://github.com/openfaas/faas/blob/1aa6270fcc274cc36d90e0a9e4caa3eb71912ae0/guide/asynchronous.md#call-a-function)