The consumer
module defines the resolver for the queue to process the async events
.
For more information about this feature, see async events.
Property | Type | Required | Description |
---|---|---|---|
key |
| Yes |
A key for the module, which other modules can refer to. Must be unique within the manifest. Regex: |
queue | string | Yes |
The name of the queue for which the resolver processes the events asynchronously. |
resolver | { function: string, method: string} | Yes | resolver contains two properties. The function property refers to the
function module that defines the handler for resolver. The method property refers to the
resolver method that will be executed when events are pushed to the queue of this consumer module.
|
Rate this page: