Cortex.Streams.Pulsar 2.1.0

dotnet add package Cortex.Streams.Pulsar --version 2.1.0
                    
NuGet\Install-Package Cortex.Streams.Pulsar -Version 2.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Cortex.Streams.Pulsar" Version="2.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cortex.Streams.Pulsar" Version="2.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Cortex.Streams.Pulsar" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Cortex.Streams.Pulsar --version 2.1.0
                    
#r "nuget: Cortex.Streams.Pulsar, 2.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Cortex.Streams.Pulsar@2.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Cortex.Streams.Pulsar&version=2.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Cortex.Streams.Pulsar&version=2.1.0
                    
Install as a Cake Tool

Cortex.Streams.Pulsar 🧠

Cortex.Streams.Pulsar is a streaming connector for Apache Pulsar, designed to work seamlessly within the Cortex Data Framework. It enables real-time data ingestion and publication from/to Pulsar topics, now with full support for message keys alongside values.


🌟 Features

  • πŸ”„ Pulsar Source Operator: Consume messages (key + value) from Pulsar topics.
  • πŸš€ Pulsar Sink Operator: Publish messages to Pulsar topics with optional keys.
  • 🧩 Key Support: Allows key-based partitioning and stream grouping.
  • πŸ“¦ Seamless DSL Integration: Easily compose with other Cortex stream operations.
  • ⚑ Built for Scale: Backed by Pulsar’s distributed, high-throughput architecture.

GitHub License NuGet Version GitHub contributors Discord Shield

πŸš€ Getting Started

Install via NuGet

dotnet add package Cortex.Streams.Pulsar

βœ… Pulsar Sink Operator

In Program.cs or Startup.cs:

using Cortex.Streams;
using Cortex.Streams.Pulsar;

var pulsarSink = new PulsarSinkOperator<string>("pulsar://localhost:6650", "persistent://public/default/input-topic");

var stream = StreamBuilder<string, string>
    .CreateNewStream("PulsarIngester")
    .Stream()
    .Sink(pulsarSink)
    .Build();

stream.Start();

stream.Emit("data1");
stream.Emit("data2");
stream.Emit("data3");

βœ… Pulsar Source Operator

using Cortex.Streams;
using Cortex.Streams.Pulsar;

var pulsarSource = new PulsarSourceOperator<string>("pulsar://localhost:6650", "persistent://public/default/input-topic");

var stream = StreamBuilder<string, string>
    .CreateNewStream("PulsarProcessor")
    .Stream(pulsarSource)
    .Map(message => message.ToUpper())
    .Sink(processed => Console.WriteLine($"Processed: {processed}"))
    .Build();

stream.Start();

πŸ” Key Use Cases

  • Partition-aware processing using message keys
  • Sessionization and user-based aggregations
  • Scalable event ingestion pipelines

🧱 Prerequisites

  • .NET 6.0 SDK or later
  • Apache Pulsar running locally or remotely
  • Add Cortex.Streams base package

πŸ’¬ Contributing

We welcome contributions from the community! Whether it's reporting bugs, suggesting features, or submitting pull requests, your involvement helps improve Cortex for everyone.

πŸ’¬ How to Contribute

  1. Fork the Repository
  2. Create a Feature Branch
git checkout -b feature/YourFeature
  1. Commit Your Changes
git commit -m "Add your feature"
  1. Push to Your Fork
git push origin feature/YourFeature
  1. Open a Pull Request

Describe your changes and submit the pull request for review.

πŸ“„ License

This project is licensed under the MIT License.

πŸ“š Sponsorship

Cortex is an open-source project maintained by BuilderSoft. Your support helps us continue developing and improving Cortex. Consider sponsoring us to contribute to the future of resilient streaming platforms.

How to Sponsor

  • Financial Contributions: Support us through GitHub Sponsors or other preferred platforms.
  • Corporate Sponsorship: If your organization is interested in sponsoring Cortex, please contact us directly.

Contact Us: cortex@buildersoft.io

Contact

We'd love to hear from you! Whether you have questions, feedback, or need support, feel free to reach out.

Thank you for using Cortex Data Framework! We hope it empowers you to build scalable and efficient data processing pipelines effortlessly.

Built with ❀️ by the Buildersoft team.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.1.0 116 10/10/2025
1.7.0 519 7/24/2025
1.6.1 216 4/8/2025
1.6.0 138 4/5/2025
1.5.0 146 2/8/2025
1.4.0 147 1/18/2025
1.3.1 138 12/24/2024
1.3.0 134 12/24/2024
1.2.1 150 12/10/2024
1.2.0 141 12/9/2024
1.1.0 151 12/3/2024
1.0.1 155 12/3/2024
1.0.0 167 11/24/2024

Just as the Cortex in our brains handles complex processing efficiently, Cortex Data Framework brings brainpower to your data management!