From 006299c9d848da4071258de9ad1c5d7dae4d37f3 Mon Sep 17 00:00:00 2001 From: Alex Ellis <alexellis2@gmail.com> Date: Sun, 3 Dec 2017 09:50:33 -0600 Subject: [PATCH] Mention X-Callback-Url --- guide/chaining_functions.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/guide/chaining_functions.md b/guide/chaining_functions.md index c5f89a48..a4108f3d 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) -- GitLab