# CAP

> .NET library for distributed transactions and an event bus with the outbox pattern

Source: https://talira.ai/catalog/cap-y0b16awj
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [frameworks / distributed apps](https://talira.ai/categories/frameworks/distributed-apps), [devops / message queues](https://talira.ai/categories/devops/message-queues), [languages / dotnet](https://talira.ai/categories/languages/dotnet)
- Licence: MIT[^1]
- Pricing: Free[^1]
- Free tier: yes[^1]
- Backed by: [.NET Core Community](https://talira.ai/orgs/dotnetcore.md)

CAP (DotNetCore.CAP) is a .NET library that keeps events between microservices from getting lost: it writes each event to a local message table in the same database transaction as your data (the outbox pattern), then publishes it to a message queue with retries. It also works as a standalone event bus, with delayed messages, consumer groups, wildcard subscriptions, a web dashboard and OpenTelemetry tracing, over [RabbitMQ](https://talira.ai/catalog/rabbitmq-gvasg4ae.md), Kafka, Azure Service Bus, Amazon SQS, NATS, Redis Streams or Pulsar, storing its table in SQL Server, MySQL, PostgreSQL or MongoDB.

## Links

- Website: https://cap.dotnetcore.xyz/
- GitHub: https://github.com/dotnetcore/CAP
- Docs: https://cap.dotnetcore.xyz/

## Problems it solves

- make sure events between my .NET microservices aren't lost when the message broker or a service fails
- publish an event only if my database transaction commits
- add an event bus to my ASP.NET Core app without writing the plumbing myself

## Features

- transactional outbox through a local message table in your own database
- guaranteed delivery with automatic retries
- delayed messages without broker support
- consumer groups, fan-out and wildcard topic subscriptions
- built-in web dashboard to monitor and retry messages
- OpenTelemetry tracing and Consul or Kubernetes node discovery

## Trust

Overall: 0.58 out of 1.
Signals: maintenance 0.68, adoption 0.77, momentum 0.54, community 0.87, backing 0.30, extensibility 0.00.

- last commit 11 days ago
- 12 commits in the last 90 days
- latest release v10.0.2 4 months ago
- 7.1k GitHub stars
- 148 contributors
- backed by .NET Core Community

## Sources

[^1]: https://github.com/dotnetcore/CAP/blob/master/LICENSE.txt (checked 28 Nov 2026)
