{"id":14997514,"url":"https://github.com/dvoaviarison/fast-ipc","last_synced_at":"2025-09-19T20:28:06.858Z","repository":{"id":143936384,"uuid":"149876239","full_name":"dvoaviarison/fast-ipc","owner":"dvoaviarison","description":"Simple, super fast, typed and event driven style inter-process communication .Net library (on the same machine)","archived":false,"fork":false,"pushed_at":"2021-09-11T05:01:52.000Z","size":165,"stargazers_count":25,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T13:23:05.368Z","etag":null,"topics":["bus","communication","core","cross-platform","csharp","csharp-library","dotnet","event","fast","inter-process","ipc","message","nuget-package","process","publishing","subscribe"],"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/dvoaviarison.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2018-09-22T12:48:44.000Z","updated_at":"2024-06-20T15:20:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a07a59f-453f-4a27-be71-8009dbf9668e","html_url":"https://github.com/dvoaviarison/fast-ipc","commit_stats":{"total_commits":22,"total_committers":2,"mean_commits":11.0,"dds":0.2727272727272727,"last_synced_commit":"709198791541fb6b7092ef1ac14a2fadceda6022"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dvoaviarison/fast-ipc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvoaviarison%2Ffast-ipc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvoaviarison%2Ffast-ipc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvoaviarison%2Ffast-ipc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvoaviarison%2Ffast-ipc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dvoaviarison","download_url":"https://codeload.github.com/dvoaviarison/fast-ipc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvoaviarison%2Ffast-ipc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275997698,"owners_count":25567380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-19T02:00:09.700Z","response_time":108,"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":["bus","communication","core","cross-platform","csharp","csharp-library","dotnet","event","fast","inter-process","ipc","message","nuget-package","process","publishing","subscribe"],"created_at":"2024-09-24T17:03:50.524Z","updated_at":"2025-09-19T20:28:06.793Z","avatar_url":"https://github.com/dvoaviarison.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"![HeadBanner](docs/imgs/headbanner.png)\n[![Build status](https://ci.appveyor.com/api/projects/status/2x2fegcdfr93hgko/branch/master?svg=true)](https://ci.appveyor.com/project/dvoaviarison/fast-ipc/branch/master)\n# Fast IPC\nFast IPC is an open source .Net library that supports typed messages and brings inter-process communication at a higher level for better usability.\nIt includes:\n- Inter process communication layer using named pipes. It supports smart generation of pipe name in case of parent/child processes. Other means of communication are going to be supported in the near future\n- Super fast serialization using protobuf\n- Typed event driven syntax using internally .Net built-in event capability and exposing simple api such as `Subscribe` and `Publish`\n\n## Get started\nTo make two processes communicate, all you need is to create an IPC bus in each process, then listen/publish on that bus, as follows:\n\n**Define your messages**: All messages only need to inherit from `Message` and be a `ProtoContract` as follows:\n```csharp\n[ProtoContract]\npublic class Ping : Message { }\n\n[ProtoContract]\npublic class Pong : Message { }\n```\n\n**ProcessA**: One process has to be described as `In` (see pipe name declaration)\n```csharp\nstatic void Main(string[] args) {\n\tvar pipeName = new SimpleStringPipeName(\n\t\tname: \"Example\", \n\t\tside: Side.In /* Optional */);;\n\tvar bus = new NamedPipeBus(pipeName: pipeName);\n\tnew ProcessAHost(bus);\n\t...\n}\n```\n\n```csharp\npublic class ProcessAHost : IHandleMessage {\n\tprivate readonly IBus _bus;\n\n\tpublic ProcessAsHost(IBus bus) {\n\t\t_bus = bus;\n\t\t_bus.Subscribe(this);\n\t}\n\n\tpublic void Handle(Message.Message msg) {\n\t\tHandleInternal((dynamic)msg);\n\t}\n\n\tprivate void HandleInternal(Ping msg) {\n\t\tConsole.WriteLine(\"Received a ping, sending a pong\");\n\t\t_bus.Publish(new Pong());\n\t}\n\n\tprivate void HandleInternal(Pong msg) {\n\t\tConsole.WriteLine(\"Received a pong\");\n\t}\n}\n```\n\n**ProcessB**: The other has to be described as `Out` (see pipe name declaration)\n```csharp\nstatic void Main(string[] args) {\n\tvar pipeName = new SimpleStringPipeName(\n\t\tname: \"Example\", \n\t\tside: Side.Out);\n\tvar bus = new NamedPipeBus(pipeName: pipeName);\n\tnew ProcessBHost(bus);\n\t...\n}\n```\n\n```csharp\npublic class ProcessBHost : IHandleMessage {\n\tprivate readonly IBus _bus;\n\n\tpublic ProcessBHost(IBus bus) {\n\t\t_bus = bus;\n\t\t_bus.Subscribe(this);\n\t}\n\n\tpublic void Handle(Message.Message msg) {\n\t\tHandleInternal((dynamic)msg);\n\t}\n\n\tprivate void HandleInternal(Ping msg) {\n\t\tConsole.WriteLine(\"Received a ping, sending a pong\");\n\t\t_bus.Publish(new Pong());\n\t}\n\n\tprivate void HandleInternal(Pong msg) {\n\t\tConsole.WriteLine(\"Received a pong\");\n\t}\n}\n```\n\nAnd voila! ProcessA and ProcessB are communicating\n\nWorking examples are available in `src` folder. We also have straightforward example using the [nuget package](https://www.nuget.org/packages/fastipc) : [HERE](https://github.com/dvoaviarison/fastipc-example) \n\n## Contribute\nThis project is open source. Fork then PR!\n\nFor now we are using named pipes with limitation to 2 processes communicating.\nWe want to introduce TCP and enable multi-tier IPC.\n\n## Compatibility\n- .Net Framework \u003e= net40\n- .Net Standard \u003e= netstandard2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvoaviarison%2Ffast-ipc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdvoaviarison%2Ffast-ipc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvoaviarison%2Ffast-ipc/lists"}