SwitzerlandBEagle1984/silverback
Silverback is a message bus and broker integration library for .NET. It is designed to simplify event-driven architectures and asynchronous messaging, with first-class support for Apache Kafka and MQTT.
Featured achievements
The project's latest awards
#1 Repository of the month
#1 Repository of the month
#1 Repository of the month
Silverback
Silverback is a message bus and broker integration library for .NET. It helps you build event-driven architectures and asynchronous workflows with first-class support for Apache Kafka and MQTT.
Silverback aims to be both high-level (consistent configuration and developer experience) and broker-aware. Kafka is a first-class citizen: features like partition-based parallelism, keys/partitioning, tombstones, Schema Registry integration, idempotency, and transactions are surfaced where they matter, instead of being abstracted away.
Why Silverback
- Kafka-first, not Kafka-only – a consistent API across brokers, while still leveraging Kafka-specific capabilities.
- Reliable by design – transactional outbox, error policies, and storage-backed features.
- Operational usability – structured logging, diagnostics, and tracing.
- Built-in cross-cutting features – headers, validation, encryption, chunking, batching.
- Testability – in-memory broker mocks and end-to-end helpers.
Documentation, guides, and samples are available here: https://silverback-messaging.net
Project Status
Continuous Build
Sonar Build
Quality Metrics
Activity
Getting Started
Silverback is modular – reference only what you need.
Packages
Core:
- Silverback.Core – message bus and core messaging components.
- Silverback.Core.Model – message semantics for event-driven/CQRS scenarios.
Broker integration:
- Silverback.Integration.Kafka – Kafka support.
- Silverback.Integration.Mqtt – MQTT support.
Optional features:
- Silverback.Core.Rx – Rx.NET integration.
- Silverback.Newtonsoft – Newtonsoft.Json serialization.
- Silverback.Kafka.SchemaRegistry – Confluent Schema Registry integration.
Storage (for outbox, client-side offsets, distributed locks):
- Silverback.Storage.PostgreSql
- Silverback.Storage.Sqlite
- Silverback.Storage.EntityFramework
- Silverback.Storage.Memory
Testing:
Supported .NET Versions
Starting with v5, Silverback targets the latest .NET LTS version only.
Quick Example (Kafka)
services.AddSilverback()
.WithConnectionToMessageBroker(options => options.AddKafka())
.AddKafkaClients(clients => clients
.WithBootstrapServers("PLAINTEXT://localhost:9092")
.AddProducer(producer => producer
.Produce<MyMessage>(endpoint => endpoint.ProduceTo("my-topic")))
.AddConsumer(consumer => consumer
.Consume<MyMessage>(endpoint => endpoint.ConsumeFrom("my-topic"))));
Usage
See the docs site for guides, API reference, and runnable examples:
Contributing
See CONTRIBUTING.md.
License
MIT License. See LICENSE.
Similar Projects
Discover other similar projects and AI models.
Distributed transaction solution in micro-service base on eventually consistency, also an eventbus with Outbox pattern
🍔 A practical and cloud-native food delivery microservices, built with .Net Aspire, .Net 10, Wolverine, Domain-Driven Design, CQRS, Vertical Slice Architecture, Event-Driven Architecture, and the latest technologies.
🎮 Implementation of an imaginary Game Leader Board application, based on Microservices Architecture, Event Driven Architecture, Vertical Slice Architecture, Event Sourcing with EventStoreDB, Redis SortedSet, Redis Pub/Sub, SignalR and .Net 9.
A cloud-native Go microservices framework with cli tool for productivity.
Dapr is a portable runtime for building distributed applications across cloud and edge, combining event-driven architecture with workflow orchestration.
A powerful flow control component enabling reliability, resilience and monitoring for microservices. (面向云原生微服务的高可用流控防护组件)