{"id":37031176,"url":"https://github.com/invertedtomato/zeta","last_synced_at":"2026-01-14T03:49:12.959Z","repository":{"id":86530010,"uuid":"115153891","full_name":"invertedtomato/zeta","owner":"invertedtomato","description":"No-nonsense, high performance pub-sub for distributing time-critical data over UDP or WebSockets.","archived":false,"fork":false,"pushed_at":"2018-02-04T06:20:45.000Z","size":99,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-27T14:12:26.986Z","etag":null,"topics":["dotnet","performance","pubsub","socket","udp"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/invertedtomato.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}},"created_at":"2017-12-22T22:16:27.000Z","updated_at":"2023-05-26T14:23:44.000Z","dependencies_parsed_at":"2023-11-28T09:45:30.499Z","dependency_job_id":null,"html_url":"https://github.com/invertedtomato/zeta","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/invertedtomato/zeta","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invertedtomato%2Fzeta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invertedtomato%2Fzeta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invertedtomato%2Fzeta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invertedtomato%2Fzeta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/invertedtomato","download_url":"https://codeload.github.com/invertedtomato/zeta/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invertedtomato%2Fzeta/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408870,"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":["dotnet","performance","pubsub","socket","udp"],"created_at":"2026-01-14T03:49:12.501Z","updated_at":"2026-01-14T03:49:12.946Z","avatar_url":"https://github.com/invertedtomato.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zeta\nNo-nonsense, high performance pub-sub for distributing time-critical data over UDP.\n\n## How to I make it go?\nCreate a server and publish a stream of realtime data:\n```c#\nvar server = new ZetaUdpPublisher(); \nserver.Start(1000); // Listed on UDP port 1000\nserver.Publish(new StringMessage(\"Message 1\")); // Publish a stream of messages\nserver.Publish(new StringMessage(\"Message 2\"));\nserver.Publish(new StringMessage(\"Message 3\"));\n// etc...\n```\n\nCreate clients and subscribe to the data stream:\n```c$\nvar client = new ZetaUdpSubscriber();\nclient.Start(\"127.0.0.1:1000\"); // Connect to localhost port 1000\nwhile (true) {\n    var msg = client.Read\u003cStringMessage\u003e(); // Receive message\n    Console.WriteLine($\"\u003e {msg}\");\n}\n```\n\nIf values are published faster than clients can recieve them, the older \"stale\" updates will be dropped in favour of the more recent updates.\n\nIf you have multiple seperate streams of data, you can seperate them by assigning a numeric \"topic\" to each stream:\n```c#\nserver.Publish(new StringMessage(\"Topic 1, message 1\"), 1);\nserver.Publish(new StringMessage(\"Topic 2, message 1\"), 2);\n```\nThis means that if receivers incur any form of delay receiving updates, they will always receive the latest update for each topic.\n\n## What happens if a client connects after a value is published?\nThe server will automatically retransmit the latest value for each topic.\n\nYou can stop this from occuring by publishing a NULL on a topic:\n```c#\nserver.Publish(null, 1);\n```\n## Whats the deal with StringMessage? Are there other message types?\nOf course! StringMessage is the simplest type of message for transporting strings. You can use BinaryMessage for byte arrays or create your own for even better control. See [InvertedTomato.Messages](https://github.com/invertedtomato/messages) for all types. Feel free to request (or pull-request) new ones - they're super easy to make.\n\n## Will updates arrive in order? (UDP doesn't garantee order)\nYou'll never receive an older update after a newer one. It is possible that an update may be lost though in favour of a newer one, as discussed above.\n\n## Does Zeta retransmit updates if they're lost (UDP doesn't garantee reliability)\nYes, Zeta will retransmit updates as needed.\n\n## What is the maximum size of a message?\nIt depends on your network. Most networks support UDP packets of 1,500 bytes or greater. However old-school networks might only support 520 bytes. By default Zeta is configured to use this worst-case value of 520 bytes. Change this in `Mtu` if needed.\n\nIf a message exceeds the maximum of the network (and you've incorrectly increased the maximum in `Mtu`) the messages will never arrive at clients.\n\n## Is it thread safe?\nZeta is thread safe. You can call `Publish` from as many threads as you want, simaltaniously. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvertedtomato%2Fzeta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finvertedtomato%2Fzeta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvertedtomato%2Fzeta/lists"}