Creates a new Kafka broker.
Runtime services for uuid, timestamps, and timers
Serializer for message payloads
Optionaloptions: KafkaOptions
Kafka connection and configuration options
Publishes a message to a topic.
The message payload type
The topic to publish to
The message payload
Optionaloptions: PublishOptions
Caller headers, ordering key and de-duplication id
Resolves when published
Internal
Publishes with framework-owned headers under the configured acknowledgement bound.
Destination topic
Payload to serialize
Framework-owned transport headers
Optionaloptions: PublishOptions
Caller headers, ordering key and de-duplication id
Resolves when the transport acknowledges the publish
Tri-state backend reachability (M70c).
Faulted supervisor → false immediately. Otherwise a dedicated admin's describeCluster round trip is cached for 5 s and bounded at 2 s. A KafkaJSRequestTimeoutError (including a nested cause) or an expired bound yields undefined; other errors yield false. Without admin on an injected factory reachability is unknown. Injected admin timeouts are the application's.
true/false/undefined as described
Sends a request and awaits its single correlated reply.
Replies arrive on the shared reply topic (KafkaOptions.replyTopic,
default 'messaging.replies'), which must exist — this broker creates
no topics; its admin is used only for metadata and group offsets. Either
pre-create it or enable auto.create.topics.enable; otherwise the
underlying producer error surfaces from this call rather than hanging until
the timeout.
The request payload type
The reply payload type
Destination topic a responder is listening on
The request payload
Optionaloptions: RequestOptions
Reply timeout behavior
The reply payload
Internal
Sends request-reply traffic with framework-owned headers.
Optionaloptions: RequestOptionsRegisters a responder for a request topic. The handler's resolved value is sent back to the caller, correlated to the originating request.
The request payload type
The reply payload type
The request topic to respond on
Invoked per request; its result is returned to the caller
Optionaloptions: SubscribeOptions
Consumer group behavior (load-balance competing responders)
The active subscription
Subscribes to a topic using a consumer group.
The message payload type
The topic to subscribe to
The handler to invoke for each message
Optionaloptions: SubscribeOptions
Optional subscription options (queue for consumer group ID)
The subscription handle
Internal
Subscribes through the header-aware internal path.
Optionaloptions: SubscribeOptions
Kafka message broker implementation.
Since
0.1.0