{"id":16878793,"url":"https://github.com/peterj/mongodb-sharding-article","last_synced_at":"2026-04-12T04:39:25.469Z","repository":{"id":145601144,"uuid":"263697337","full_name":"peterj/mongodb-sharding-article","owner":"peterj","description":"Example of sharding in MongoDB","archived":false,"fork":false,"pushed_at":"2020-05-13T17:23:09.000Z","size":139,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-19T21:42:58.362Z","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/peterj.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-13T17:22:54.000Z","updated_at":"2021-11-01T09:16:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ba1d842-b5d3-45bf-9a82-c41af7048b49","html_url":"https://github.com/peterj/mongodb-sharding-article","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peterj/mongodb-sharding-article","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterj%2Fmongodb-sharding-article","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterj%2Fmongodb-sharding-article/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterj%2Fmongodb-sharding-article/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterj%2Fmongodb-sharding-article/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterj","download_url":"https://codeload.github.com/peterj/mongodb-sharding-article/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterj%2Fmongodb-sharding-article/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31704492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T21:17:31.016Z","status":"online","status_checked_at":"2026-04-12T02:00:06.763Z","response_time":58,"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":[],"created_at":"2024-10-13T15:51:25.657Z","updated_at":"2026-04-12T04:39:25.426Z","avatar_url":"https://github.com/peterj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Horizontal partitioning in MongoDB\n\nThis repository can be used as part of the [\"Horizontal partitioning in MongoDB\"](https://www.learncloudnative.com/blog/2020-05-12-creating-horizontal-partitions-or-shards-in-mongodb/) article.\n\n## What's in this repo?\n\n- `docker-compose.yml` = 3 MongoDB shards, a configuration server and a router\n- `books.json` = sample data\n- `init-config.js` = config file for the configuration server\n- `init-router.js` = config file for the router\n- `init-shard1.js` = config file for shard1 \n- `init-shard2.js` = config file for shard2\n- `init-shard3.js` = config file for shard3\n\n## How to get started? \n\nRun `docker-compose up -d`, then configure all services. See the [\"Horizontal partitioning in MongoDB\"](https://www.learncloudnative.com/blog/2020-05-12-creating-horizontal-partitions-or-shards-in-mongodb/) article.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterj%2Fmongodb-sharding-article","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterj%2Fmongodb-sharding-article","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterj%2Fmongodb-sharding-article/lists"}