From f9091f2d5cca171897e729b8df91fced22232501 Mon Sep 17 00:00:00 2001 From: Savorboard Date: Tue, 14 May 2024 09:57:44 +0800 Subject: [PATCH] Update docs add warning to enable `--jetstream` for NATS Seraver. --- docs/content/user-guide/en/transport/nats.md | 5 +++-- docs/content/user-guide/zh/transport/nats.md | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/content/user-guide/en/transport/nats.md b/docs/content/user-guide/en/transport/nats.md index 6d803f261..c0397ee15 100644 --- a/docs/content/user-guide/en/transport/nats.md +++ b/docs/content/user-guide/en/transport/nats.md @@ -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 diff --git a/docs/content/user-guide/zh/transport/nats.md b/docs/content/user-guide/zh/transport/nats.md index 0fdb95229..513e365e1 100644 --- a/docs/content/user-guide/zh/transport/nats.md +++ b/docs/content/user-guide/zh/transport/nats.md @@ -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.** ## 配置