You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`@message-queue-toolkit/kafka` - Kafka (in development)
19
20
20
21
## Basic Usage
21
22
@@ -29,7 +30,7 @@ They implement the following public methods:
29
30
*`options`, composed by
30
31
*`messageSchemas` – the `zod` schemas for all supported messages;
31
32
*`messageTimestampField` - which field in the message contains the message creation date (by default it is `timestamp`). This field needs to be a `Date` object or ISO-8601 date string, if your message doesn't contain it the library will add one automatically to avoid infinite loops on consumer;
32
-
*`messageTypeField` - which field in the message describes the type of a message. This field needs to be defined as `z.literal` in the schema and is used for resolving the correct schema for validation
33
+
*`messageTypeField` - which field in the message describes the type of a message. This field needs to be defined as `z.literal` in the schema and is used for resolving the correct schema for validation. **Note:** It is not supported for Kafka publisher
33
34
*`locatorConfig` - configuration for resolving existing queue and/or topic. Should not be specified together with the `creationConfig`.
34
35
*`creationConfig` - configuration for queue and/or topic to create, if one does not exist. Should not be specified together with the `locatorConfig`;
35
36
*`policyConfig` - SQS only - configuration for queue access policies (see [SQS Policy Configuration](#sqs-policy-configuration) for more information);
@@ -93,7 +94,7 @@ Multi-schema consumers support multiple message types via handler configs. They
93
94
*`dependencies` – a set of dependencies depending on the protocol;
94
95
*`options`, composed by
95
96
*`handlers` – configuration for handling each of the supported message types. See "Multi-schema handler definition" for more details;
96
-
*`messageTypeField` - which field in the message describes the type of a message. This field needs to be defined as `z.literal` in the schema and is used for routing the message to the correct handler;
97
+
*`messageTypeField` - which field in the message describes the type of a message. This field needs to be defined as `z.literal` in the schema and is used for routing the message to the correct handler;**Note:** It is not supported for Kafka consumer
97
98
*`messageTimestampField` - which field in the message contains the message creation date (by default it is `timestamp`). This field needs to be a `Date` object or an ISO-8601 date string;
98
99
*`maxRetryDuration` - how long (in seconds) the message should be retried due to the `retryLater` result before marking it as consumed (and sending to DLQ, if one is configured). This is used to avoid infinite loops. Default is 4 days;
99
100
*`queueName`; (for SNS publishers this is a misnomer which actually refers to a topic name)
0 commit comments