{"id":39918212,"url":"https://github.com/maxdeliso/micron","last_synced_at":"2026-01-18T17:06:00.448Z","repository":{"id":42060723,"uuid":"181926661","full_name":"maxdeliso/micron","owner":"maxdeliso","description":"multiple input multiple output streaming relay","archived":false,"fork":false,"pushed_at":"2022-04-14T17:49:02.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-28T01:13:47.277Z","etag":null,"topics":["broadcasting","event-driven","java","ring-buffer"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxdeliso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-17T16:13:07.000Z","updated_at":"2022-01-04T16:38:30.000Z","dependencies_parsed_at":"2022-08-12T03:40:56.973Z","dependency_job_id":null,"html_url":"https://github.com/maxdeliso/micron","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/maxdeliso/micron","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxdeliso%2Fmicron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxdeliso%2Fmicron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxdeliso%2Fmicron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxdeliso%2Fmicron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxdeliso","download_url":"https://codeload.github.com/maxdeliso/micron/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxdeliso%2Fmicron/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28543712,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T14:59:57.589Z","status":"ssl_error","status_checked_at":"2026-01-18T14:59:46.540Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["broadcasting","event-driven","java","ring-buffer"],"created_at":"2026-01-18T17:06:00.379Z","updated_at":"2026-01-18T17:06:00.436Z","avatar_url":"https://github.com/maxdeliso.png","language":"Java","readme":"# Abstract\n\n**micron** is a multiple input multiple output broadcasting program.\n\n## Notes\n\n* Implemented using event driven I/O.\n* Data is stored in a central shared ring buffer [0, _M_-1], with shared cursor location _c_.\n* Each peer has a position _p_ in the ring buffer.\n* Toggles of read/write/accept interest flags are done using a delay queue and a separate thread.\n\n## Building\n\nYou can build directly on your local machine using maven, or use the provided Dockerfile.\n\n``docker build -t micron .``\n\n## Testing\n\n1. ``docker run -p 1337:1337 micron``\n2. ``yes a | nc localhost 1337``\n3. ``yes b | nc localhost 1337``\n\n### Notes\n\n* requires Java 17 or greater\n* you should see as and bs interleaved in the output, roughly equally,\nand this will generalize to as many connected peers as there are.\n* you can tail the metrics using: ``tail -f logs/metrics.log``; this will show some basic metrics and gauges about performance.\n\n## References\n\n* https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/channels/SocketChannel.html\n* https://en.wikipedia.org/wiki/Circular_buffer\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxdeliso%2Fmicron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxdeliso%2Fmicron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxdeliso%2Fmicron/lists"}