跳转到主要内容

最近更新的页面

Request-Reply Semantics

NATS 文档(英文原版) Using NATS

The pattern of sending a message and receiving a response is encapsulated in most client librarie...

由 cocobook-sync 更新于 2 年前

Including a Reply Subject

NATS 文档(英文原版) Using NATS

The optional reply-to field when publishing a message can be used on the receiving side to respon...

由 cocobook-sync 更新于 2 年前

Sending Messages

NATS 文档(英文原版) Using NATS

NATS sends and receives messages using a protocol that includes a target subject, an optional rep...

由 cocobook-sync 更新于 2 年前

Draining Messages Before Disconnect

NATS 文档(英文原版) Using NATS

This feature is the ability to drain connections or subscriptions and then close the connection. ...

由 cocobook-sync 更新于 2 年前

Queue Subscriptions

NATS 文档(英文原版) Using NATS

Subscribing to a queue group is only slightly different than subscribing to a subject alone. The ...

由 cocobook-sync 更新于 2 年前

Wildcard Subscriptions

NATS 文档(英文原版) Using NATS

There is no special code to subscribe with a wildcard subject. Wildcards are a normal part of the...

由 cocobook-sync 更新于 2 年前

Replying to a Message

NATS 文档(英文原版) Using NATS

Incoming messages have an optional reply-to field. If that field is set, it will contain a subjec...

由 cocobook-sync 更新于 2 年前

Unsubscribing After N Messages

NATS 文档(英文原版) Using NATS

NATS provides a special form of unsubscribe that is configured with a message count and takes eff...

由 cocobook-sync 更新于 2 年前

Unsubscribing

NATS 文档(英文原版) Using NATS

The client libraries provide a means to unsubscribe a previous subscription request. This process...

由 cocobook-sync 更新于 2 年前

Asynchronous Subscriptions

NATS 文档(英文原版) Using NATS

Asynchronous subscriptions use callbacks of some form to notify an application when a message arr...

由 cocobook-sync 更新于 2 年前

Slow Consumers

NATS 文档(英文原版) Using NATS

NATS is designed to move messages through the server quickly. As a result, NATS depends on the ap...

由 cocobook-sync 更新于 2 年前

Listen for Connection Events

NATS 文档(英文原版) Using NATS

While the connection status is interesting, it is perhaps more interesting to know when the statu...

由 cocobook-sync 更新于 2 年前

Monitoring the Connection

NATS 文档(英文原版) Using NATS

Managing the interaction with the server is primarily the job of the client library but most of t...

由 cocobook-sync 更新于 2 年前

Pausing Between Reconnect Attempts

NATS 文档(英文原版) Using NATS

It doesn’t make much sense to try to connect to the same server over and over. To prevent this so...

由 cocobook-sync 更新于 2 年前

Avoiding the Thundering Herd

NATS 文档(英文原版) Using NATS

When a server goes down, there is a possible anti-pattern called the Thundering Herd where all of...

由 cocobook-sync 更新于 2 年前

Set the Number of Reconnect Attempts

NATS 文档(英文原版) Using NATS

Applications can set the maximum reconnect attempts per server. This includes the server provided...

由 cocobook-sync 更新于 2 年前

Disabling Reconnect

NATS 文档(英文原版) Using NATS

You can disable automatic reconnect with connection options: Go // Disable reconnect attempts nc,...

由 cocobook-sync 更新于 2 年前

Miscellaneous functionalities

NATS 文档(英文原版) Using NATS

This section contains miscellaneous functionalities and options for connect. Get the Maximum Payl...

由 cocobook-sync 更新于 2 年前

Turning Off Echo'd Messages

NATS 文档(英文原版) Using NATS

By default a NATS connection will echo messages if the connection also has interest in the publis...

由 cocobook-sync 更新于 2 年前

Ping/Pong Protocol

NATS 文档(英文原版) Using NATS

NATS client applications use a PING/PONG protocol to check that there is a working connection to ...

由 cocobook-sync 更新于 2 年前