mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 16:56:47 +00:00
Update asynchronous.md
This commit is contained in:
parent
59d02fa955
commit
23c480cdfe
@ -3,12 +3,14 @@
|
||||
By default functions are accessed synchronously via the following route:
|
||||
|
||||
```
|
||||
$ http://gateway/function/{function_name}
|
||||
$ curl --data "message" http://gateway/function/{function_name}
|
||||
```
|
||||
|
||||

|
||||
As of [PR #131](https://github.com/alexellis/faas/pull/131) asynchronous invocation is available for testing.
|
||||
|
||||
As of PR #131 asynchronous invocation is available for testing.
|
||||
*Logical flow for synchronous functions:*
|
||||
|
||||

|
||||
|
||||
## Why use Asynchronous processing?
|
||||
|
||||
@ -18,7 +20,7 @@ As of PR #131 asynchronous invocation is available for testing.
|
||||
|
||||
* Consume a large batch of work within a few seconds and let it process at its own pace
|
||||
|
||||
## How does it work?
|
||||
## How does async work?
|
||||
|
||||
Here is a conceptual diagram
|
||||
|
||||
@ -26,7 +28,7 @@ Here is a conceptual diagram
|
||||
|
||||
* [queue-worker](https://github.com/open-faas/nats-queue-worker)
|
||||
|
||||
## Deploy the Asynchronous stack
|
||||
## Deploy the async stack
|
||||
|
||||
The reference implementation for asychronous processing uses NATS Streaming, but you are free to extend OpenFaaS and write your own [queue-worker](https://github.com/open-faas/nats-queue-worker).
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user