Skip to content

Commit

Permalink
Update docs add warning to enable --jetstream for NATS Seraver.
Browse files Browse the repository at this point in the history
  • Loading branch information
yang-xiaodong committed May 14, 2024
1 parent 5e7c158 commit f9091f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions docs/content/user-guide/en/transport/nats.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
[NATS](https://nats.io/) is a simple, secure and performant communications system for digital systems, services and devices. NATS is part of the Cloud Native Computing Foundation (CNCF).

!!! warning
Versions of CAP below 5.2.0 are implement based on Request/Response mode, and now we are based on JetStream implementation.
see https://github.com/dotnetcore/CAP/issues/983 for more information.
Since version 5.2+, CAP's relevant features have been implemented based on [JetStream](https://docs.nats.io/nats-concepts/jetstream), so it needs to be explicitly enabled on the server.

**You need to enable JetStream by specifying the `--jetstream` parameter when starting the NATS Server in order to use CAP properly.**

## Configuration

Expand Down
5 changes: 3 additions & 2 deletions docs/content/user-guide/zh/transport/nats.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
[NATS](https://nats.io/)是一个简单、安全、高性能的数字系统、服务和设备通信系统。NATS 是 CNCF 的一部分。

!!! warning
CAP 5.2.0 以下的版本基于 Request/Response 实现, 现在我们已经基于 JetStream 实现。
查看 https://github.com/dotnetcore/CAP/issues/983 了解更多。
自 CAP 5.2+ 的版本已经基于 [JetStream](https://docs.nats.io/nats-concepts/jetstream) 实现相关功能,所以需要在服务端显式启用。

**你需要在 NATS Server 启动时候指定 `--jetstream` 参数来启用 JetSteram 相关功能,才能正常使用CAP.**

## 配置

Expand Down

0 comments on commit f9091f2

Please sign in to comment.