Table of Contents

Property RequestReplyMode

Namespace
NATS.Client.Core
Assembly
NATS.Client.Core.dll

RequestReplyMode

Determines the mechanism for handling request-reply interactions in NATS.

public NatsRequestReplyMode RequestReplyMode { get; init; }

Property Value

NatsRequestReplyMode

Remarks

There are two available modes:

1. SharedInbox - Uses a shared subscription inbox for handling replies to request messages, using the muxer.

2. Direct - While using the same inbox prefix, each reply is handled before being processed by the muxer. This mode is more resource-efficient.

The RequestReplyMode setting determines which mode is used during message exchanges initiated by RequestAsync<TRequest, TReply>(string, TRequest?, NatsHeaders?, INatsSerialize<TRequest>?, INatsDeserialize<TReply>?, NatsPubOpts?, NatsSubOpts?, CancellationToken) or other related methods.