{"id":18802420,"url":"https://github.com/jd-opensource/dtc","last_synced_at":"2025-08-21T23:32:40.952Z","repository":{"id":38206804,"uuid":"398811581","full_name":"jd-opensource/dtc","owner":"jd-opensource","description":"High performance Distributed Table Cache system designed by JD.com, Offering hotspot data cache from databases in order to reduce pressure of database and improve QPS.","archived":false,"fork":false,"pushed_at":"2024-09-10T09:45:27.000Z","size":27850,"stargazers_count":31,"open_issues_count":19,"forks_count":19,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-10T14:22:32.969Z","etag":null,"topics":["cache","cache-storage","distributed-storage","distributed-systems","storage"],"latest_commit_sha":null,"homepage":"","language":"C++","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/jd-opensource.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":"2021-08-22T13:52:39.000Z","updated_at":"2024-10-22T09:52:31.000Z","dependencies_parsed_at":"2024-09-10T11:08:45.656Z","dependency_job_id":null,"html_url":"https://github.com/jd-opensource/dtc","commit_stats":null,"previous_names":["jd-opensource/dtc"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-opensource%2Fdtc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-opensource%2Fdtc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-opensource%2Fdtc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-opensource%2Fdtc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jd-opensource","download_url":"https://codeload.github.com/jd-opensource/dtc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230542287,"owners_count":18242332,"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","cache-storage","distributed-storage","distributed-systems","storage"],"created_at":"2024-11-07T22:28:03.249Z","updated_at":"2024-12-20T06:05:57.300Z","avatar_url":"https://github.com/jd-opensource.png","language":"C++","readme":"![DTC](http://storage.360buyimg.com/bq-install/release/dtc_logo.png)\n# DTC - Distributed Table Cache\n[![ubuntu\u0026gcc-4.9](https://github.com/jd-opensource/dtc/actions/workflows/ubuntu-20.04\u0026gcc-4.9.yml/badge.svg)](https://github.com/jd-opensource/dtc/actions/workflows/ubuntu-20.04\u0026gcc-4.9.yml)\n## Overview\nDTC is a high performance Distributed Table Cache system designed by JD.com that offering hotspot data cache for databases in order to reduce pressure of database and improve QPS.\n\n![](http://storage.360buyimg.com/bq-install/release/architecture.png)\n\nThe DTC system consists of the following components:\n* **Agent** - Provides key consistent hash routing in order to reduce connections and improve performance.\n* **Dtcd** - Provides hot data caching service.\n* **Connector** - Provides connection and communication between cache and persistent storage database such as MYSQL.\n\n## Feature\n* Database Protection\n  - protection for null node, prevent cache breakdown.\n  - provide long-term data caching, and prevent cache penetration.\n  - data source thread available, protect the database with a limited number of connections.\n  - Estimated timeout policy to reduce invalid database requests.\n* Data consistency\n  - write-through policy, ensure cache and database data consistent.\n  - barrier policy to prevent update requests lost while concurrcy.\n* Performance\n  - integrated memroy allocation policy to avoid frequent system calls.\n  - I/O multiplexing to handle concurrcy requests.\n  - multiple data structure models to improve memory performance.\n* Scalability\n  - cache node expands horizontally to enhance cache capacity.\n  - cache node expands vertically, supports slave reading, and solve the bottleneck of hot keys.\n  - provide sharding, supports for persistent storage scalable.\n## Performance\n* DTC can process 90,000 QPS of query requests at single-core cpu \u0026 single dtc instance.\n* DTC can provide above 3,000,000 QPS query capability with above 99.9% hit rate and less than 200 μs response time in actual distributed scenarios.\n* Layered Storage is able to provide about 1,000 QPS write capability with above 99.9% per single instance.\n## How to Build\nDTC provides docker images for quick start:\n* Start server docker:\u003cbr/\u003e\n```shell\ndocker pull dtc8/server:latest\ndocker run -i -t --name dtc-server -p 127.0.0.1:20015:20015 dtc8/server:latest\n```\nDepending on 3rd-party sql parsing engine [hsql](https://github.com/DTC8/sql-parser) .\nFor more compile information, click [Building](docs/building.md).\u003cbr/\u003e\nTrying a demo, visit [QuickStart](docs/quickstart.md).\n\n## License\nJD.com © Copyright 2021-2024 [JD.com](https://ir.jd.com/), Inc.\u003cbr/\u003e\n[Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0). Visit [LICENSE](./LICENSE) for more details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd-opensource%2Fdtc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjd-opensource%2Fdtc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd-opensource%2Fdtc/lists"}