DotPulsar
v4.3.1-rc.1Pre-release
net6.0net7.0net8.0net9.0.NETStandard2.0.NETStandard2.1
The official .NET client library for Apache Pulsar
Published
Jul 11, 2025
1y ago
Total Downloads
2.7M
2,666,590
Install
dotnet add package DotPulsar --version 4.3.1-rc.1
| Product | Versions |
|---|---|
| .NET | |
| .NET Standard |
README
DotPulsar
Let's take a look at a "Hello world" example, where we first set up a consumer and then produce a message. Note that the topic and subscription will be created if they don't exist.
Creating the client
Before creating readers, consumers, and producers, we need to create a client.
using DotPulsar;
using DotPulsar.Extensions;
await using var client = PulsarClient.Builder().Build(); // Connecting to pulsar://localhost:6650
Consuming
await using var consumer = client.NewConsumer(Schema.String)
.SubscriptionName("MySubscription")
.Topic("persistent://public/default/mytopic")
.InitialPosition(SubscriptionInitialPosition.Earliest)
.Create();
await foreach (var message in consumer.Messages())
{
Console.WriteLine($"Received: {message.Value()}");
await consumer.Acknowledge(message);
}
Producing
await using var producer = client.NewProducer(Schema.String).Topic("persistent://public/default/mytopic").Create();
var messageId = await producer.Send("Hello World");
Changes from Previous Version
No structural changes between v4.3.0 and v4.3.1-rc.1.
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 6 target frameworks; confirm the exact target used by your application.The published metadata declares 28 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.