AnyProtocol

AnyProtocol is a .NET 8 and .NET 10 contract-first messaging library. Define one interface, register it as a client or server, and carry the same contract over local (InMemory), HTTP (REST), gRPC, Kafka, RabbitMQ, ZeroMQ, or MCP server transports according to each transport's declared capabilities.

AnyProtocol overview: one contract, any transport

Start here

Protocols

Choose the transport that matches the deployment boundary and delivery guarantees:

AnyProtocol validates selected protocols against contract operations during startup. Review transport semantics before production use: request/reply and streaming may be native or emulated, and delivery, durability, ordering, cancellation, and backpressure guarantees differ by transport.