# Cysharp/MessagePipe

High performance in-memory/distributed messaging pipeline for .NET and Unity.

Repository: https://github.com/Cysharp/MessagePipe
Canonical: https://ross.abutalabs.com/products/messagepipe
Language: C#
License: MIT
License Family: permissive
Last push: 2026-08-11T00:04:02+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 55, longevity 100
- inputs: {"age_days": 1966, "days_push": 23, "days_rel": 86, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1973, forks 133 (observed 2026-08-28T04:06:01.087354+00:00)

## What it is
MessagePipe is a high-performance in-memory and distributed messaging pipeline library for .NET and Unity. It supports pub/sub, mediator pattern for CQRS, EventAggregator-style ViewModel decoupling, and IPC-RPC with a dependency-injection-first design.

## Use cases
- publish and subscribe to typed events in .NET applications
- decouple ViewModels with an EventAggregator pattern
- implement mediator pattern for CQRS
- communicate between processes with IPC-RPC
- build distributed messaging pipelines
- replace slow C# events or Prism EventAggregator with a faster alternative
- manage event subscriptions in Unity games

## When to choose
- you need high-performance pub/sub messaging in .NET or Unity
- you want DI-first messaging integrated with Microsoft.Extensions.DependencyInjection or VContainer
- you need sync/async, keyed, buffered, or scoped messaging variants
- you need interprocess or distributed messaging with the same API

## When to avoid
- you need a full message broker with persistence like RabbitMQ or Kafka
- your project does not use a dependency injection container
- you need messaging outside the .NET/Unity ecosystem

## Facets
- artifact type: library
- maturity: active
- function: message-queue, middleware, rpc
- domain: microservices, backend, developer-tools
- platform: dotnet, cross-platform, game-engine
- tags: pub-sub, event-aggregator, mediator-pattern, cqrs, in-memory-messaging, unity, dependency-injection, interprocess-communication, messaging, game-development

## Member repositories
- Cysharp/MessagePipe (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:01.087354+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:04:56.900406+00:00, confidence not recorded.
  - readme: https://github.com/Cysharp/MessagePipe (fetched 2026-08-28T04:06:01.087354+00:00, sha 2f899a9f490c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
