RedisRoute
faststream.redis.broker.RedisRoute
#
RedisRoute(
call,
channel=None,
*,
publishers=(),
list=None,
stream=None,
dependencies=(),
parser=None,
decoder=None,
middlewares=(),
no_ack=EMPTY,
ack_policy=EMPTY,
no_reply=False,
title=None,
description=None,
include_in_schema=True,
max_workers=None,
)
Bases: SubscriberRoute
Class to store delayed RedisBroker subscriber registration.
Initialize the RedisRoute.
PARAMETER | DESCRIPTION |
---|---|
call
|
Message handler function to wrap the same with
TYPE:
|
channel
|
Redis PubSub object name to send message.
TYPE:
|
publishers
|
Redis publishers to broadcast the handler result.
TYPE:
|
list
|
Redis List object name to send message.
TYPE:
|
stream
|
Redis Stream object name to send message.
TYPE:
|
dependencies
|
Dependencies list (
TYPE:
|
parser
|
Parser to map original aio_pika.IncomingMessage Msg to FastStream one.
TYPE:
|
decoder
|
Function to decode FastStream msg bytes body to python objects.
TYPE:
|
middlewares
|
Subscriber middlewares to wrap incoming message processing. (Deprecated)
TYPE:
|
no_ack
|
Whether to disable FastStream auto acknowledgement logic or not. (Deprecated)
TYPE:
|
ack_policy
|
Acknowledgement policy of the handler.
TYPE:
|
no_reply
|
Whether to disable FastStream RPC and Reply To auto responses or not.
TYPE:
|
title
|
AsyncAPI subscriber object title.
TYPE:
|
description
|
AsyncAPI subscriber object description. Uses decorated docstring as default.
TYPE:
|
include_in_schema
|
Whetever to include operation in AsyncAPI schema or not.
TYPE:
|
max_workers
|
Number of workers to process messages concurrently.
TYPE:
|