{"id":37031855,"url":"https://github.com/ppossanzini/arbitrer","last_synced_at":"2026-01-14T03:53:54.160Z","repository":{"id":44028862,"uuid":"470962231","full_name":"ppossanzini/arbitrer","owner":"ppossanzini","description":"MediatR RPC implementation via Pipelines","archived":true,"fork":false,"pushed_at":"2025-07-04T10:58:24.000Z","size":377,"stargazers_count":5,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-30T19:35:36.694Z","etag":null,"topics":["azure","dotnet","dotnet-core","dotnetcore","kafka","mediator","mediatr","mediatr-extension","message-queue","microservices","rabbitmq","request-reply"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ppossanzini.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-03-17T11:17:37.000Z","updated_at":"2025-07-04T10:58:45.000Z","dependencies_parsed_at":"2023-10-10T19:35:06.891Z","dependency_job_id":"0f247dd2-f1a1-41d9-907a-1e6e4c212215","html_url":"https://github.com/ppossanzini/arbitrer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ppossanzini/arbitrer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppossanzini%2Farbitrer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppossanzini%2Farbitrer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppossanzini%2Farbitrer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppossanzini%2Farbitrer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppossanzini","download_url":"https://codeload.github.com/ppossanzini/arbitrer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppossanzini%2Farbitrer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","dotnet","dotnet-core","dotnetcore","kafka","mediator","mediatr","mediatr-extension","message-queue","microservices","rabbitmq","request-reply"],"created_at":"2026-01-14T03:53:54.091Z","updated_at":"2026-01-14T03:53:54.146Z","avatar_url":"https://github.com/ppossanzini.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NOTE : THIS PROJECT HAS BEEN MOVED TO [!(https://github.com/ppossanzini/AxonFlow)](https://github.com/ppossanzini/AxonFlow)\n\n\n# Arbitrer\n[![NuGet](https://img.shields.io/nuget/dt/arbitrer.svg)](https://www.nuget.org/packages/arbitrer) \n[![NuGet](https://img.shields.io/nuget/vpre/arbitrer.svg)](https://www.nuget.org/packages/arbitrer)\n\n\nArbitrer provides [MediatR](https://github.com/jbogard/MediatR) Pipelines to transform mediator from In-process to Out-Of-Process messaging via RPC calls implemented with popular message dispatchers. \n\n## When you need Arbitrer. \n\nMediatr is very good to implement some patterns like [CQRS](https://docs.microsoft.com/en-us/azure/architecture/patterns/cqrs)\n\nImplementing CQRS in an in-process application does not bring to you all the power of the pattern but gives you the opportunity to have organized, easy to maintain code. When the application grow you may need to refactor your things to a microservices architecture.\n\nMicroservices and patterns like CQRS are very powerfull combination. In this scenario you will need to rewrite communication part to use some kind of out of process message dispatcher.\n\nArbitrer change Mediatr behaviour and let you decide which call needs to be in-process and which needs to be Out-of-process and dispatched remotely, via a configuration without changing a single row of your code.\n\n\n## Versioning\n\nArbitrer follow MediatR versioning.\n\n   \n ```\n Arbitrer v.12.x is for MediatR from 12.x\n Arbitrer v.9.0 is for MediatR from 9.x to 11.x\n ```\n   \n \n\n## Installation\n\nYou should install [Arbitrer with NuGet](https://www.nuget.org/packages/arbitrer):\n\n    Install-Package Arbitrer\n    \nOr via the .NET Core command line interface:\n\n    dotnet add package Arbitrer\n\nEither commands, from Package Manager Console or .NET Core CLI, will download and install Arbitrer and all required dependencies.\n\n\n## Basic Configuration \n\nConfiguring Arbitrer is an easy task. \n1) Add Arbitrer to services configuration via AddArbitrer extension method. \n\n``` \n  services.AddArbitrer(opt =\u003e ...\n```\n\n2) Decide what is the default behaviour, available options are \n   1) ***ImplicitLocal*** : all `mediator.Send()` calls will be delivered in-process unless further configuration. \n   2) ***ImplicitRemote*** : all `mediator.Send()` calls will be delivered out-of-process unless further configuration. \n   3) ***Explicit*** : you have the responsability do declare how to manage every single call. \n\n\n```\n    services.AddArbitrer(opt =\u003e\n    {\n      opt.Behaviour = ArbitrerBehaviourEnum.Explicit;\n    });\n```\n\n\n3) Configure calls delivery type according with you behaviour:\n\n```\n    services.AddArbitrer(opt =\u003e\n    {\n      opt.Behaviour = ArbitrerBehaviourEnum.Explicit;\n      opt.SetAsRemoteRequest\u003cMediatRRequest1\u003e();\n      opt.SetAsRemoteRequest\u003cMediatRRequest2\u003e();\n      ....\n    }\n```\n\n\nOf course you will have some processes with requests declared **Local** and other processes with same requests declared **Remote**. \n\n\n### Example of process with all local calls and some remote calls\n\n```\n    services.AddArbitrer(opt =\u003e\n    {\n      opt.Behaviour = ArbitrerBehaviourEnum.ImplicitLocal;\n      opt.SetAsRemoteRequest\u003cMediatRRequest1\u003e();\n      opt.SetAsRemoteRequest\u003cMediatRRequest2\u003e();\n      opt.SetAsRemoteRequests(typeof(MediatRRequest2).Assembly); // All requests in an assembly\n    });\n```\n\n\n### Example of process with local handlers. \n\n```\n    services.AddArbitrer(opt =\u003e\n    {\n      opt.Behaviour = ArbitrerBehaviourEnum.ImplicitLocal;\n    });\n\n```\n\n### Example of process with remore handlers. \n\n```\n    services.AddArbitrer(opt =\u003e\n    {\n      opt.Behaviour = ArbitrerBehaviourEnum.ImplicitRemote;\n    });\n```\n\n\n# Arbitrer with RabbitMQ\n\n\n## Installing Arbitrer RabbitMQ extension.\n\n```\n    Install-Package Arbitrer.RabbitMQ\n```\n    \nOr via the .NET Core command line interface:\n\n```\n    dotnet add package Arbitrer.RabbitMQ\n```\n\n## Configuring RabbitMQ Extension. \n\nOnce installed you need to configure rabbitMQ extension. \n\n```\n    services.AddArbitrerRabbitMQMessageDispatcher(opt =\u003e\n    {\n      opt.HostName = \"rabbit instance\";\n      opt.Port = 5672;\n      opt.Password = \"password\";\n      opt.UserName = \"rabbituser\";\n      opt.VirtualHost = \"/\";\n    });\n    services.ResolveArbitrerCalls();\n```\n\nor if you prefer use appsettings configuration \n\n```\n    services.AddArbitrerRabbitMQMessageDispatcher(opt =\u003e context.Configuration.GetSection(\"rabbitmq\").Bind(opt));\n    services.ResolveArbitrerCalls();\n```\n\n\n# Arbitrer with Kafka\n\n## Installing Arbitrer Kafka extension.\n\n```\n    Install-Package Arbitrer.Kafka\n```\n    \nOr via the .NET Core command line interface:\n\n```\n    dotnet add package Arbitrer.Kafka\n```\n\n\n## Configuring Kafka Extension. \n\nOnce installed you need to configure Kafka extension. \n\n```\n    services.AddArbitrerKafkaMessageDispatcher(opt =\u003e\n    {\n      opt.BootstrapServers = \"localhost:9092\";\n    });\n    services.ResolveArbitrerCalls();\n```\n\nor if you prefer use appsettings configuration \n\n```\n    services.AddArbitrerKafkaMessageDispatcher(opt =\u003e context.Configuration.GetSection(\"kafka\").Bind(opt));\n    services.ResolveArbitrerCalls();\n```\n\n\n\n# Arbitrer with Azure Message Queues\n\nComing soon. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppossanzini%2Farbitrer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppossanzini%2Farbitrer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppossanzini%2Farbitrer/lists"}