amqp server
amqp server
The amqp server binding decodes the AMQP protocol on the inbound network stream, producing higher level application streams for each send or receive link. Defines a binding with AMQP 1.0 protocol support, with server behavior. Conditional routes based on the link address are used to route these application streams to an exit binding.
amqp_server:
type: amqp
kind: server
exit: default_exit
routes:
- guarded:
my_guard:
- read:items
- when:
- address: echo
capabilities: send_and_receive
exit: routed_exitFeature is in Incubator
Read how to enable incubator features. Star and watch the Zilla repo for new releases!
Configuration (* required)
routes
arrayofobject
Conditional amqp specific routes.
routes:
- when:
- address: echo
capabilities: send_and_receive
exit: echo_serverroutes[].guarded
objectas map of namedarrayofstring
List of roles required by each named guard to authorize this route.
routes:
- guarded:
my_guard:
- read:itemsroutes[].when
arrayofobject
List of conditions (any match) to match this route. Read more: When a route matches
routes:
- when:
- address: echo
capabilities: send_and_receivewhen[].address
string
Link address.
when[].capabilities
enum[send_only,receive_only,send_and_receive] | Default:send_and_receive
Send or receive, or both.
routes[].exit
string
Next binding when following this route.
routes:
- when:
...
exit: echo_serverexit
string
Default exit binding when no conditional routes are viable.
exit: echo_servertelemetry
object
Defines the desired telemetry for the binding.
telemetry.metrics
array
Telemetry metrics to track
telemetry:
metrics:
- stream.*
