Thanks to the community for supporting CAP, the following is the implementation of community-supported transport
+ 42- 0
docs/content/user-guide/en/transport/pulsar.md파일 보기
@@ -0,0 +1,42 @@
# Apache Pulsar
[Apache Pulsar](https://pulsar.apache.org/) is a cloud-native, distributed messaging and streaming platform originally created at Yahoo! and now a top-level Apache Software Foundation project.
Pulsar can be used in CAP as a message transporter.
## Configuration
To use Pulsar transporter, you need to install the following package from NuGet:
```powershell
PM> Install-Package DotNetCore.CAP.Pulsar
```
Then you can add configuration items to the `ConfigureServices` method of `Startup.cs`.
```csharp
public void ConfigureServices(IServiceCollection services)
{
// ...
services.AddCap(x =>
{
x.UsePulsar(opt => {
//Pulsar options
});
// x.UseXXX ...
});
}
```
#### Pulsar Options
The Pulsar configuration parameters provided directly by the CAP:
NAME | DESCRIPTION | TYPE | DEFAULT
:---|:---|---|:---
ServiceUrl | Broker server address | string |
TlsOptions | Tls configuration | object |
+ 1- 0
docs/content/user-guide/zh/transport/general.md파일 보기
@@ -13,6 +13,7 @@ CAP 支持以下几种运输方式:
* [NATS](nats.md)
* [In-Memory Queue](in-memory-queue.md)
* [Redis Streams](redis-streams.md)
* [Apache Pulsar](pulsar.md)
## 怎么选择运输器
+ 43- 0
docs/content/user-guide/zh/transport/pulsar.md파일 보기