{"id":27734335,"url":"https://github.com/cakemc-network/redundant-mesh-cluster","last_synced_at":"2026-01-24T03:31:25.928Z","repository":{"id":287612105,"uuid":"965270116","full_name":"CakeMC-Network/redundant-mesh-cluster","owner":"CakeMC-Network","description":"🔁 A self-repairing and mutating mesh-based cluster system built with Netty and Kotlin","archived":false,"fork":false,"pushed_at":"2025-08-29T22:16:19.000Z","size":229,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"develop","last_synced_at":"2025-08-30T00:22:18.304Z","etag":null,"topics":["cluster","clustering","event-driven","mesh","netty","networking","packets","redundant"],"latest_commit_sha":null,"homepage":"https://cakemc.net","language":"Kotlin","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/CakeMC-Network.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-12T19:34:40.000Z","updated_at":"2025-08-29T22:16:22.000Z","dependencies_parsed_at":"2025-04-28T13:08:13.671Z","dependency_job_id":"8c52db1c-cae2-400b-83fe-492b948438e7","html_url":"https://github.com/CakeMC-Network/redundant-mesh-cluster","commit_stats":null,"previous_names":["cakemc-network/redundant-mesh-cluster"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CakeMC-Network/redundant-mesh-cluster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CakeMC-Network%2Fredundant-mesh-cluster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CakeMC-Network%2Fredundant-mesh-cluster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CakeMC-Network%2Fredundant-mesh-cluster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CakeMC-Network%2Fredundant-mesh-cluster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CakeMC-Network","download_url":"https://codeload.github.com/CakeMC-Network/redundant-mesh-cluster/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CakeMC-Network%2Fredundant-mesh-cluster/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28710111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T23:51:44.727Z","status":"online","status_checked_at":"2026-01-24T02:00:06.909Z","response_time":89,"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":["cluster","clustering","event-driven","mesh","netty","networking","packets","redundant"],"created_at":"2025-04-28T13:08:06.179Z","updated_at":"2026-01-24T03:31:25.922Z","avatar_url":"https://github.com/CakeMC-Network.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redundant Mesh Cluster\n\n\u003eA self-repairing and mutating mesh-based cluster system built with Netty and Kotlin.\n\n## Overview\n\nThis project implements a dynamic cluster where each node can operate as either a client or a server depending on network conditions. If the main server node goes offline, the cluster autonomously promotes one of the remaining nodes to take its place, maintaining connectivity and system integrity.\n\n### Key Features\n\n- ⚙️ Self-healing: Nodes detect server failure and elect a new one.\n- 🔁 Auto-Reconnect: Disconnected clients automatically attempt to rejoin the cluster.\n- 🧠 Smart Role Assignment: Nodes dynamically decide to act as server or client based on availability.\n- 📦 Packet-Based Communication: Uses Netty channels and custom codecs for fast, structured messaging.\n- 🧵 Multi-threaded: Built for concurrent networking and failover logic.\n- 🎟️ Event-Driven: many out of the box events based on Client/Server behavior.\n\n## Getting Started\n\n```kotlin\nval endpoint = Networking.createEndPoint()\nendpoint.start()\nendpoint.sendPacket(packet)\n````\n\n\u003eKill any node — the cluster will adapt and restore itself.\n\n## Self Repair Example:\n```kotlin\nval endpoint1 = Networking.createEndPoint()\nval endpoint2 = Networking.createEndPoint()\nval endpoint3 = Networking.createEndPoint()\nval endpoint4 = Networking.createEndPoint()\n\nthread(start = true, isDaemon = true) { endpoint1.start() }\nthread(start = true, isDaemon = true) { endpoint2.start() }\nthread(start = true, isDaemon = true) { endpoint3.start() }\nthread(start = true, isDaemon = true) { endpoint4.start() }\n\nThread.sleep(5000)\nprintln(\"Main: Killing endpoint1\")\nendpoint1.close()\n```\n\n## Event Example:\n\u003eBasic example using a Dummy Event:\n```kotlin\nclass Event(val message: String)\n\nfun main() {\n  val eventBus = EventBus()\n\n  eventBus.subscribe\u003cEvent\u003e { event -\u003e\n    println(event.message)\n  }\n\n  eventBus.publish(Event(\"TEST\"))\n}\n```\n\u003eNetworking example using events:\n```kotlin\n    val endpoint1 = Networking.createEndPoint()\nval endpoint2 = Networking.createEndPoint()\n\nendpoint1.eventBus().subscribe\u003cPacketReceivedEvent\u003e { packetReceivedEvent -\u003e\n    println(\"packet got on client 1\")\n    println(packetReceivedEvent.packet)\n\n    if (packetReceivedEvent.packet.packetType == PacketType.REQUEST) {\n        endpoint2.handler().replyToPacketSync(\n            packetReceivedEvent.channel, packetReceivedEvent.packet,\n            Packet(UUID.randomUUID(),  PacketType.RESPONSE, \"client-1\", \"test\", \"testing\", \"RESPONSE\")\n\n        )\n    }\n}\nendpoint2.eventBus().subscribe\u003cPacketReceivedEvent\u003e { packetReceivedEvent -\u003e\n    println(\"packet got on client 2\")\n    println(packetReceivedEvent.packet)\n\n    if (packetReceivedEvent.packet.packetType == PacketType.REQUEST) {\n        endpoint2.handler().replyToPacketSync(\n            packetReceivedEvent.channel, packetReceivedEvent.packet,\n            Packet(UUID.randomUUID(),  PacketType.RESPONSE, \"client-2\", \"test\", \"testing\", \"RESPONSE\")\n\n        )\n    }\n}\n\n\nthread(start = true, isDaemon = true) { endpoint1.start() }\nthread(start = true, isDaemon = true) { endpoint2.start() }\n\nThread.sleep(5000)\n\nendpoint1.handler().sendToAllSync(\n    Packet(UUID.randomUUID(), PacketType.NORMAL, \"client-1\", \"test\", \"testing\", \"{}\")\n)\nval response = endpoint2.handler().sendPacketMainWithFuture(\n    Packet(UUID.randomUUID(), PacketType.REQUEST, \"client-2\", \"test\", \"testing\", \"requesting\")\n).syncUninterruptedly(3000, TimeUnit.MILLISECONDS)\n\nprintln(\"RESPONSE: \" + response)\n\nendpoint2.handler().sendToAllSync(\n    Packet(UUID.randomUUID(), PacketType.NORMAL, \"client-2\", \"test\", \"testing\", \"{}\")\n)\n\nval response2 = endpoint1.handler().sendPacketMainWithFuture(\n    Packet(UUID.randomUUID(), PacketType.REQUEST, \"client-1\", \"test\", \"testing\", \"requesting\")\n).syncUninterruptedly(3000, TimeUnit.MILLISECONDS)\n\nprintln(\"RESPONSE: \" + response2)\n```\n\n---\n\n\u003e 🔗 Built for resilience. Designed for autonomy.  \n\u003e If one falls, another rises. Welcome to the future of decentralized networking.\n\nMade with ❤️ by the CakeMC team.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcakemc-network%2Fredundant-mesh-cluster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcakemc-network%2Fredundant-mesh-cluster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcakemc-network%2Fredundant-mesh-cluster/lists"}