{"id":16086398,"url":"https://github.com/sebastianconcept/matter","last_synced_at":"2026-04-28T11:03:40.289Z","repository":{"id":64080369,"uuid":"555962118","full_name":"sebastianconcept/matter","owner":"sebastianconcept","description":"Algorithmically sharded repository for Pharo.","archived":false,"fork":false,"pushed_at":"2024-01-24T11:24:54.000Z","size":638,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T14:42:11.665Z","etag":null,"topics":["cache","database","pharo","smalltalk"],"latest_commit_sha":null,"homepage":"","language":"Smalltalk","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sebastianconcept.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":"2022-10-22T18:46:05.000Z","updated_at":"2024-01-26T23:55:50.000Z","dependencies_parsed_at":"2024-10-31T06:34:16.137Z","dependency_job_id":null,"html_url":"https://github.com/sebastianconcept/matter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/sebastianconcept/matter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianconcept%2Fmatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianconcept%2Fmatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianconcept%2Fmatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianconcept%2Fmatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebastianconcept","download_url":"https://codeload.github.com/sebastianconcept/matter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianconcept%2Fmatter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32377599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T09:24:15.638Z","status":"ssl_error","status_checked_at":"2026-04-28T09:24:15.071Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["cache","database","pharo","smalltalk"],"created_at":"2024-10-09T13:13:00.922Z","updated_at":"2026-04-28T11:03:40.268Z","avatar_url":"https://github.com/sebastianconcept.png","language":"Smalltalk","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Matter](./header.png)\n# Matter\n\nAlgorithmically sharded repository for Pharo.\n\n![build](https://github.com/sebastianconcept/matter/actions/workflows/build.yml/badge.svg)\n[![Release](https://img.shields.io/github/v/tag/sebastianconcept/matter?label=release)](https://github.com/sebastianconcept/matter/releases)\n![Tests](https://img.shields.io/badge/tests-10-green)\n[![License](https://img.shields.io/badge/license-MIT-green)](./LICENSE.txt)\n\n[![Project Status: Concept – Minimal or no implementation has been done yet, or the repository is only intended to be a limited example, demo, or proof-of-concept.](https://www.repostatus.org/badges/latest/concept.svg)](https://www.repostatus.org/#concept)\n[![Pharo 7](https://img.shields.io/badge/Pharo-7-%23aac9ff.svg)](https://pharo.org/download)\n[![Pharo 10](https://img.shields.io/badge/Pharo-10-%23aac9ff.svg)](https://pharo.org/download)\n\n---\n\n## Features\n\n- Basic `Dictionary` API.\n- Simplicity. No transactions, no persistance, just a big cache of Pharo objects.\n- Horizontably scalable by adding nodes to the shard.\n- No need to create and maintain schemas.\n- Homogeneously distributed data load.\n- Fast as a Dictionary can be.\n\n## Ambition\n\nMatter gives you a performant cache of objects with a basic Dictionary API and scalable by the number of Pharo images configured in the clients. \n\n## Examples\n\n```Smalltalk\n\"Start 3 servers (in the same image just for testing)\"\nserver1 := MTServer startOn: 1901.\nserver2 := MTServer startOn: 1902.\nserver3 := MTServer startOn: 1903.\n\n\"Stop them later\"\nserver1 stop.\nserver2 stop.\nserver3 stop.\n```\n\n```Smalltalk\n\"Create the client of the shard.\"\n\turls := { \n\t\t'ws://localhost:1901'.\n\t\t'ws://localhost:1902'.\n\t\t'ws://localhost:1903'.\n\t }.\n\tclient := Matter fromUrls: urls.\n```\n\n```Smalltalk\n\"Add objects to the shard\"\nclient at: #store40 put: 40.\nclient at: #store41 put: 41.\nclient at: #store42 put: 42.\n```\n\n```Smalltalk\n\"Query objects from the shard.\"\nfound := client at: #store42.\nfound == 42.\n```\n\n```Smalltalk\n\"Checking server storage's size\"\n(client nodes at: 'ws://localhost:1901') size == 2.\n(client nodes at: 'ws://localhost:1902') size == 0.\n(client nodes at: 'ws://localhost:1903') size == 1.\nclient size == 3.\n```\n\n## Installation\n\nOpen a Pharo workspace and evaluate:\n\n```smalltalk\nMetacello new\n  baseline: 'Matter';\n  repository: 'github://sebastianconcept/matter/src';\n  load\n```\n\n## Include as dependency\n\nIn BaselineOf or ConfigurationOf it can be added in this way:\n\n```smalltalk\nspec\n  baseline: 'Matter'\n    with: [ spec\n    repository: 'github://sebastianconcept/matter/src';\n    loads: #('Core' 'Core-Tests' 'Client' 'Server' 'Client-Tests' 'Server-Tests') ]\n```\n\n## Benchmarks\nHere are some benchmarks to quantify its optimization potential using the production data that ispired this work:\n\n```smalltalk\nABBench bench: [ \n    ABBench \n          a: [ bench queryMongoTimes: 10000 ] \n          b: [ bench queryMatterTimes: 10000 ].\n    ].\n\"B is 317.29% FASTER than A\"\n```\n\n```smalltalk\nABBench bench: [ \n    ABBench \n    \ta: [ bench queryRedisTimes: 1000 ] \n\tb: [ bench queryMatterTimes: 1000 ].\n    ].\n\n\"B is 191.47% FASTER than A\" \n```\n\n## Docker\n### Image build\n\n```bash\ndocker build -t matter . \n```\n### Container run\n\n```bash\ndocker run --rm -e MATTER_PORT=1901 -p 1901:1901 matter\n```\n\n### Cluster with docker-compose\n\nThis will start/stop a Matter cluster of 5 MTServer nodes. Starting in port 1901 and ending in 1905.\n\n```bash\ndocker-compose up -d\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianconcept%2Fmatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebastianconcept%2Fmatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianconcept%2Fmatter/lists"}