Pulsar.Client
3.12.1
See the version list below for details.
dotnet add package Pulsar.Client --version 3.12.1
NuGet\Install-Package Pulsar.Client -Version 3.12.1
<PackageReference Include="Pulsar.Client" Version="3.12.1" />
<PackageVersion Include="Pulsar.Client" Version="3.12.1" />
<PackageReference Include="Pulsar.Client" />
paket add Pulsar.Client --version 3.12.1
#r "nuget: Pulsar.Client, 3.12.1"
#:package Pulsar.Client@3.12.1
#addin nuget:?package=Pulsar.Client&version=3.12.1
#tool nuget:?package=Pulsar.Client&version=3.12.1
pulsar-client-dotnet
Contributions and stars ★ are most welcome!
Pulsar.Client nuget | Pulsar.Client.Otel nuget
Supported pulsar cluster versions: 2.4+
Find examples of usage in /examples folder. We are trying to keep api similar to the Java client, so please take a look at it's documentation to understand possible options available. You can also join telegram chat https://t.me/pro_pulsar for further discussions.
Features list (based on Client Feature Matrix):
- Basic Producer/Consumer API
- Partitioned topics
- Batching
- Chunking
- Compression
- TLS
- Authentication (token, tls, oauth2)
- Reader API
- Proxy Support
- Effectively-Once
- Schema (All types, Multi-version)
- Consumer seek
- Multi-topics consumer
- Topics regex consumer
- Compacted topics
- User defined properties
- Reader hasMessageAvailable
- Hostname verification
- Multi Hosts Service Url
- Key_shared subscription
- Key based batcher
- Negative Acknowledge
- Delayed/scheduled messages
- Dead Letter Policy
- Interceptors
- Transactions
- Statistics
- End-to-end Encryption
- SubscriptionInitialPosition
- Cumulative Ack
- Batch-Index Ack
- SNI Routing
- Table view
Quick contributing guide
Common steps before building
- Fork and clone locally
- Install dotnet tools:
dotnet tool restore - Restore packages:
dotnet restore
MacOS steps before building:
- Install Snappy:
brew install snappy - Install Libzstd:
brew install zstd
Ubuntu steps before building:
- Install Snappy:
sudo apt-get install -y libsnappy-dev - Install Libzstd:
sudo apt-get install -y libzstd-dev
Building and Testing
- Build the solution:
dotnet build(dotnet core sdk required) This will install required tools and then you can use any IDE to build solution - Make your modifications
- Run unit tests:
cd tests/UnitTests&&dotnet test - (Optional) If changes are made in Client logic, run Integration tests. Before running do the following
- Install pulsar cluster:
- MacOS guide:
brew tap streamlio/homebrew-formulaebrew install streamlio/homebrew-formulae/pulsarbrew install streamlio/homebrew-formulae/bookkeeperbrew services start pulsarbrew services start bookkeeper
- Run commands in
/tests/IntegrationTests/commands.txt - Change
pulsarAddressin Common.fs to point your pulsar cluster - Ensure
advertisedAddressin broker.conf to point your pulsar cluster - Ensure
public/defaultnamespace with default settings - Ensure
public/retentionnamespace with time or storage size retention configured
- Install pulsar cluster:
- Send a Pull Request
Maintaners and support
- You can suppport me (@Lanayx) using Github sponsors so I continue maintaining this project well.
- If you want me to implement new (missing) features, this can be arranged on a paid basis using Github sponsors as well, please PM in Telegram
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Apache.Avro (>= 1.11.3)
- AvroSchemaGenerator (>= 2.9.2)
- FSharp.Core (>= 9.0.300)
- FSharp.UMX (>= 1.1.0)
- K4os.Compression.LZ4 (>= 1.3.6)
- Microsoft.Extensions.Caching.Memory (>= 8.0.1)
- Microsoft.Extensions.Logging (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.2)
- Microsoft.IO.RecyclableMemoryStream (>= 3.0.0)
- NSec.Cryptography (>= 22.4.0)
- PemUtils (>= 3.0.0.82)
- Pipelines.Sockets.Unofficial (>= 2.2.8)
- protobuf-net (>= 3.2.30)
- protobuf-net.Reflection (>= 3.2.12)
- Snappier (>= 1.1.6)
- System.IO.Pipelines (>= 8.0.0)
- zlib.net-mutliplatform (>= 1.0.6)
- ZstdNet (>= 1.4.5)
NuGet packages (12)
Showing the top 5 NuGet packages that depend on Pulsar.Client:
| Package | Downloads |
|---|---|
|
Pulsar.Client.Otel
OpenTelemetry plugin for Pulsar.Client |
|
|
DotNetCore.CAP.Pulsar
Distributed transaction solution in micro-service base on eventually consistency, also an eventbus with Outbox pattern. |
|
|
Zq.Utils.Core
.NET Standard2.0、.NET Standard2.1、.NET5、.NET6版本工具类 |
|
|
SnD.Sdk
SDK for Sneaks&Data OSS Projects |
|
|
EasyCore.EventBus.Pulsar
.Net Core EventBus,Distributed Event Bus,Based on Pulsar。 |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Pulsar.Client:
| Repository | Stars |
|---|---|
|
dotnetcore/CAP
Distributed transaction solution in micro-service base on eventually consistency, also an eventbus with Outbox pattern
|
|
|
LeonKou/NetPro
🌈An enhanced version with clean architecture of asp.netcore,efficiently manage startup,Support for netcore3.1/6.0
|
| Version | Downloads | Last Updated |
|---|---|---|
| 3.13.1 | 147 | 12/27/2025 |
| 3.13.0 | 13,740 | 11/8/2025 |
| 3.12.1 | 2,847 | 10/30/2025 |
| 3.12.0 | 13,273 | 9/22/2025 |
| 3.11.0 | 734 | 9/18/2025 |
| 3.10.0 | 27,608 | 7/31/2025 |
| 3.9.6 | 680 | 7/29/2025 |
| 3.9.5 | 52,257 | 6/20/2025 |
| 3.9.4 | 14,613 | 5/28/2025 |
| 3.9.3 | 22,368 | 5/22/2025 |
| 3.9.2 | 43,742 | 4/14/2025 |
| 3.9.1 | 6,787 | 4/3/2025 |
| 3.9.0 | 4,513 | 3/26/2025 |
| 3.8.1 | 31,279 | 3/7/2025 |
| 3.8.0 | 1,747 | 3/5/2025 |
| 3.7.0 | 49,094 | 2/8/2025 |
| 3.6.2 | 175,912 | 12/9/2024 |
| 3.6.1 | 64,065 | 11/21/2024 |
| 3.6.0 | 158,403 | 8/8/2024 |
| 3.5.4 | 11,594 | 8/1/2024 |
| 3.5.3 | 3,058 | 7/31/2024 |
| 3.5.2 | 8,332 | 7/15/2024 |
| 3.5.1 | 9,833 | 6/19/2024 |
| 3.5.0 | 9,263 | 5/15/2024 |
| 3.4.0 | 4,624 | 4/19/2024 |
| 3.3.1 | 3,181 | 3/28/2024 |
| 3.3.0 | 38,990 | 2/12/2024 |
| 3.2.0 | 1,983 | 2/1/2024 |
| 3.1.0 | 36,004 | 11/19/2023 |
| 3.0.0 | 883 | 11/17/2023 |
| 3.0.0-beta.2 | 235 | 10/22/2023 |
| 3.0.0-beta.1 | 190 | 10/15/2023 |
| 2.21.0 | 245 | 9/23/2025 |
| 2.20.0 | 221 | 7/31/2025 |
| 2.19.0 | 480 | 5/19/2025 |
| 2.18.3 | 512 | 4/16/2025 |
| 2.18.2 | 362 | 4/3/2025 |
| 2.18.1 | 321 | 4/2/2025 |
| 2.18.0 | 506 | 3/27/2025 |
| 2.17.0 | 491 | 12/26/2024 |
| 2.16.0 | 15,008 | 4/29/2024 |
| 2.15.2 | 4,832 | 3/7/2024 |
| 2.15.1 | 1,064 | 2/12/2024 |
| 2.15.0 | 48,077 | 11/18/2023 |
| 2.14.0 | 1,215 | 11/14/2023 |
| 2.13.2 | 49,879 | 10/11/2023 |
| 2.13.1 | 3,564 | 9/29/2023 |
| 2.13.0 | 73,470 | 9/25/2023 |
| 2.12.7 | 21,440 | 8/9/2023 |
| 2.12.6 | 43,494 | 7/23/2023 |
| 2.12.4 | 4,951 | 7/17/2023 |
| 2.12.3 | 17,240 | 7/6/2023 |
| 2.12.2 | 116,518 | 3/31/2023 |
| 2.12.1 | 27,192 | 3/22/2023 |
| 2.12.0 | 11,260 | 1/29/2023 |
| 2.11.0 | 42,577 | 10/13/2022 |
| 2.10.4 | 86,026 | 10/7/2022 |
| 2.10.3 | 3,159 | 9/16/2022 |
| 2.10.2 | 53,814 | 6/22/2022 |
| 2.10.1 | 72,331 | 3/9/2022 |
| 2.10.0 | 47,487 | 2/23/2022 |
| 2.9.4 | 25,211 | 12/5/2021 |
| 2.9.3 | 3,655 | 11/26/2021 |
| 2.9.2 | 1,414 | 11/11/2021 |
| 2.9.1 | 33,003 | 10/14/2021 |
| 2.9.0 | 2,270 | 9/29/2021 |
| 2.8.1 | 5,709 | 9/9/2021 |
| 2.8.0 | 2,426 | 9/2/2021 |
| 2.7.2 | 10,837 | 8/26/2021 |
| 2.7.1 | 7,623 | 8/6/2021 |
| 2.7.0 | 7,403 | 7/20/2021 |
| 2.6.3 | 2,255 | 7/15/2021 |
| 2.6.2 | 2,157 | 7/9/2021 |
| 2.6.1 | 1,508 | 7/6/2021 |
| 2.6.0 | 6,875 | 7/5/2021 |
| 2.5.3 | 1,322 | 7/2/2021 |
| 2.5.2 | 1,468 | 6/30/2021 |
| 2.5.1 | 1,798 | 6/29/2021 |
| 2.5.0 | 1,418 | 6/27/2021 |
| 2.4.1 | 1,665 | 6/25/2021 |
| 2.4.0 | 2,772 | 6/14/2021 |
| 2.3.3 | 1,806 | 6/8/2021 |
| 2.3.1 | 2,917 | 5/11/2021 |
| 2.3.0 | 1,502 | 5/11/2021 |
| 2.2.0 | 2,389 | 4/22/2021 |
| 2.1.1 | 1,473 | 4/14/2021 |
| 2.1.0 | 4,779 | 3/16/2021 |
| 2.0.4 | 2,444 | 3/5/2021 |
| 2.0.3 | 1,496 | 3/5/2021 |
| 2.0.2 | 2,856 | 2/23/2021 |
| 2.0.1 | 9,461 | 2/17/2021 |
| 2.0.0 | 1,469 | 2/12/2021 |
| 1.8.5 | 9,552 | 2/10/2021 |
| 1.8.4 | 28,157 | 1/25/2021 |
| 1.8.3 | 2,504 | 1/6/2021 |
| 1.8.2 | 3,615 | 12/17/2020 |
| 1.8.1 | 4,609 | 12/15/2020 |
| 1.8.0 | 4,187 | 12/10/2020 |
| 1.7.8 | 129,726 | 5/17/2021 |
| 1.7.7 | 1,374 | 5/17/2021 |
| 1.7.6 | 1,509 | 5/17/2021 |
| 1.7.5 | 3,380 | 10/30/2020 |
| 1.7.4 | 6,976 | 10/19/2020 |
| 1.7.3 | 30,878 | 10/13/2020 |
| 1.7.2 | 1,950 | 10/2/2020 |
| 1.7.1 | 5,149 | 9/17/2020 |
| 1.7.0 | 1,764 | 9/14/2020 |
| 1.6.3 | 1,568 | 9/12/2020 |
| 1.6.2 | 1,718 | 9/3/2020 |
| 1.6.1 | 1,566 | 9/2/2020 |
| 1.6.0 | 1,741 | 8/30/2020 |
| 1.5.0 | 10,960 | 8/3/2020 |
| 1.4.3 | 2,669 | 7/9/2020 |
| 1.4.2 | 1,759 | 7/2/2020 |
| 1.4.1 | 1,507 | 6/29/2020 |
| 1.4.0 | 2,106 | 6/17/2020 |
| 1.3.0 | 1,666 | 6/14/2020 |
| 1.2.0 | 3,095 | 5/27/2020 |
| 1.1.1 | 1,548 | 5/22/2020 |
| 1.1.0 | 2,221 | 5/15/2020 |
| 1.0.1 | 1,534 | 5/14/2020 |
| 1.0.0 | 1,566 | 5/14/2020 |
| 0.18.4 | 2,093 | 4/21/2020 |
| 0.18.3 | 1,722 | 4/18/2020 |
| 0.18.2 | 3,472 | 4/8/2020 |
| 0.18.1 | 1,573 | 4/7/2020 |
| 0.18.0 | 1,756 | 4/1/2020 |
| 0.17.0 | 1,805 | 3/21/2020 |
| 0.16.0 | 1,586 | 3/19/2020 |
| 0.15.0 | 2,166 | 2/28/2020 |
| 0.14.1 | 1,603 | 2/25/2020 |
| 0.14.0 | 1,512 | 2/21/2020 |
| 0.13.1 | 1,534 | 2/19/2020 |
| 0.13.0 | 1,931 | 2/14/2020 |
| 0.12.0 | 2,296 | 12/31/2019 |
| 0.11.2 | 1,746 | 12/23/2019 |
| 0.11.1 | 1,675 | 12/20/2019 |
| 0.11.0 | 1,604 | 12/16/2019 |
| 0.10.0 | 1,730 | 11/17/2019 |
| 0.9.1 | 1,759 | 11/14/2019 |
| 0.9.0 | 1,714 | 11/12/2019 |
| 0.8.2 | 1,708 | 11/9/2019 |
| 0.8.1 | 1,713 | 11/4/2019 |
| 0.8.0 | 1,637 | 11/2/2019 |
| 0.7.0 | 1,663 | 10/25/2019 |
| 0.6.0 | 1,720 | 10/16/2019 |
| 0.5.0 | 1,657 | 10/15/2019 |
| 0.4.0 | 1,675 | 10/8/2019 |
| 0.3.0 | 1,630 | 10/7/2019 |
| 0.2.0 | 1,752 | 9/30/2019 |
| 0.1.5 | 1,502 | 9/13/2019 |
| 0.1.4 | 1,456 | 9/9/2019 |
| 0.1.3 | 1,429 | 9/9/2019 |
| 0.1.2 | 1,390 | 9/9/2019 |
| 0.1.1 | 1,513 | 9/6/2019 |
| 0.1.0 | 1,761 | 9/6/2019 |
Fix wrong results of hasMessageAvailable after seeking by timestamp