{"id":20168978,"url":"https://github.com/mage/mage-testproject-sharding","last_synced_at":"2026-06-07T03:32:01.192Z","repository":{"id":82165239,"uuid":"97802968","full_name":"mage/mage-testproject-sharding","owner":"mage","description":"Test project demonstarting https://github.com/mage/mage-module-shard","archived":false,"fork":false,"pushed_at":"2017-07-21T11:06:21.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T15:17:10.126Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"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/mage.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":null,"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-07-20T07:13:57.000Z","updated_at":"2017-07-20T07:14:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"0a8937a8-0331-42a7-8263-a0562dfccbc8","html_url":"https://github.com/mage/mage-testproject-sharding","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mage%2Fmage-testproject-sharding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mage%2Fmage-testproject-sharding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mage%2Fmage-testproject-sharding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mage%2Fmage-testproject-sharding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mage","download_url":"https://codeload.github.com/mage/mage-testproject-sharding/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241605819,"owners_count":19989612,"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","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":[],"created_at":"2024-11-14T01:10:48.435Z","updated_at":"2025-03-03T04:12:58.608Z","avatar_url":"https://github.com/mage.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mage-testproject-sharding\n\nSimple project demonstrating how the `mage-module-shard`\nmodule can be used.\n\n## Installation\n\n```shell\ngit clone https://github.com/mage/mage-testproject-sharding.git\ncd mage-testproject-sharding\nnpm install \n```\n\n## Running a cluster\n\nYou will need to open multiple terminal windows.\n\n### Zookeeper\n\nZookeeper will be used to coordinate the nodes between each others.\n\nIn a first terminal, run:\n\n```shell\nnpm run zookeeper\n```\n\n### Nodes\n\nIn a second terminal, run\n\n```shell\nnpm run cluster node1 start\nnpm run cluster node2 start\n# ...\n```\n\nFeel free to start as many nodes as you want. Then, start one last node,\nin development mode ''\n\n```shell\nnpm run cluster node0 develop\n```\n\nWe will be emitting sharded calls to our cluster from\nthis REPL interface.\n\n### Running a sharded module method\n\nFrom node0's development console:\n\n```javascript\nconst mod = mage.sharded\nshard = mod.createShard('4')\nshard.getModuleId().then((id) =\u003e console.log(id))\n```\n\nLicense\n-------\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmage%2Fmage-testproject-sharding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmage%2Fmage-testproject-sharding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmage%2Fmage-testproject-sharding/lists"}