{"id":17105211,"url":"https://github.com/tmrts/teracache","last_synced_at":"2025-04-13T01:13:18.339Z","repository":{"id":57483806,"uuid":"85302218","full_name":"tmrts/teracache","owner":"tmrts","description":"Scalable, fault-tolerant, highly-available cache","archived":false,"fork":false,"pushed_at":"2017-03-17T11:09:25.000Z","size":36,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T01:13:13.245Z","etag":null,"topics":["cache","distributed-systems","go","golang","gossip-protocol"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/tmrts.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}},"created_at":"2017-03-17T10:58:33.000Z","updated_at":"2021-01-24T07:39:54.000Z","dependencies_parsed_at":"2022-08-28T17:40:47.341Z","dependency_job_id":null,"html_url":"https://github.com/tmrts/teracache","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/tmrts%2Fteracache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmrts%2Fteracache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmrts%2Fteracache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmrts%2Fteracache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmrts","download_url":"https://codeload.github.com/tmrts/teracache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650754,"owners_count":21139681,"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":["cache","distributed-systems","go","golang","gossip-protocol"],"created_at":"2024-10-14T15:41:17.098Z","updated_at":"2025-04-13T01:13:18.308Z","avatar_url":"https://github.com/tmrts.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=center\u003e\nTeracache\n\u003cbr\u003e\n\u003ca href=\"http://travis-ci.org/tmrts/teracache\"\u003e\u003cimg alt=\"build-status\" src=\"https://img.shields.io/badge/build-passing-brightgreen.svg?style=flat-square\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/tmrts/teracache/blob/master/LICENSE\" \u003e\u003cimg alt=\"License\" src=\"https://img.shields.io/badge/license-Apache%20License%202.0-E91E63.svg?style=flat-square\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/tmrts/teracache/releases\" \u003e\u003cimg alt=\"Release Version\" src=\"https://img.shields.io/badge/release-v0.0.1-blue.svg?style=flat-square\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://godoc.org/github.com/tmrts/teracache\" \u003e\u003cimg alt=\"Documentation\" src=\"https://img.shields.io/badge/godoc-reference-5272B4.svg?style=flat-square\"/\u003e\u003c/a\u003e\n\u003c/h1\u003e\n\nTeracache is a scalable, decentralized, highly-available in-memory cache for\nread-asymmetrical workflows.\n\n## Workflow\n\nThe workflow diagram depicts a system with multiple topics and nodes where each\ncolor represents the topic they're in.\n\n![workflow-diagram](https://cdn.rawgit.com/tmrts/teracache/master/workflow-diagram.svg)\n\n## What is Read-Asymmetrical?\n\nIn a read-asymmetrical workflow, reads are frequent while the writes are rare.\nFor example a newsfeed will resize and optimize a thumbnail when a new article\narrives and then serve the optimized thumbnail to thousands or millions of\nusers.\n\nIn such cases, it is very profitable to use a cache that doesn't sacrifice\nperformance to allow write operations. Teracache does exactly this trade-off.\n\n## How to use invalidations?\n\nCache entries are immutable and no entry is considered stale. Entries\nare evicted only to admit more popular entries.\n\n## Inspired By\n\n- [groupcache](https://github.com/golang/groupcache)\n- [SWIM Membership Protocol](https://www.cs.cornell.edu/~asdas/research/dsn02-swim.pdf)\n- [Microsoft Orleans](https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/Orleans-MSR-TR-2014-41.pdf)\n- [Amazon Dynamo](http://s3.amazonaws.com/AllThingsDistributed/sosp/amazon-dynamo-sosp2007.pdf)\n- [Consistent Hashing and Random Trees](https://www.akamai.com/es/es/multimedia/documents/technical-publication/consistent-hashing-and-random-trees-distributed-caching-protocols-for-relieving-hot-spots-on-the-world-wide-web-technical-publication.pdf)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmrts%2Fteracache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmrts%2Fteracache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmrts%2Fteracache/lists"}