Coder Social home page Coder Social logo

dtc's Introduction

DTC

DTC - Distributed Table Cache 分布式表缓存

Build Status

概述

DTC是一个分布式表级缓存系统,可为数据库提供热点数据缓存支持,减少数据库的访问压力。 DTC architecture DTC系统由以下组件组成:

  • Agent - 提供Key一致性Hash路由、命令请求的服务;能够减少Cache的连接数,提升性能。
  • Dtcd - 提供热点数据缓存、DB代理的服务。
  • Connector - 此组件为缓存与持久化存储数据库(例如:MySql)之间提供连接和数据传输功能。

特征

  • 为数据库提供保护机制:
    • 保护空节点,防止缓存穿透。
    • 提供永不过期的缓存数据,防止缓存击穿。
    • 数据源线程柔性可用,保护数据库有限的连接数。
    • 预估超时机制,减少无效数据库请求。
  • 保障缓存和数据库的数据一致性:
    • write-through机制,保证缓存和数据库数据一致。
    • 栅栏机制,防止高并发情景下更新请求丢失。
  • 缓存高性能:
    • 集成内存分配机制,避免频繁系统调用。
    • I/O多路复用机制,承接大并发请求量。
    • 多种数据结构模型,提高内存
  • 扩展性:
    • 缓存节点横向扩容,增强缓存容量。
    • 缓存节点纵向扩容,支持备读,解决热key问题。
    • 支持分库分表,支持持久化存储的拓展。

性能

单核CPU,单DTC实例环境下,可支持90,000 QPS的查询请求量;
在真实的分布式场景中,DTC可提供超过3,000,000 QPS的查询服务,命中率在99.9%以上,且平均响应时长在200微秒(μs)以内。

构建

项目提供docker镜像,可快速启动服务:

  • 启动server镜像:
    docker pull dtc8/server:latest
    docker run -i -t -p 127.0.0.1:20015:20015 dtc8/server:latest

更多编译详情,请移步buiding.

社区

在使用过程中遇到问题,或有好的意见建议,请提交Issues
欢迎贡献代码,提交Pull Requests

第三方依赖

项目成员

特别感谢

感谢京东副总裁王建宇博士给予项目的大力支持,多次参与指导提供建议和方向!

许可证

京东集团 版权所有 © Copyright 2021 JD.com, Inc.

许可证遵循 Apache 2.0 协议. 更多细节请访问 LICENSE.

dtc's People

Contributors

kfysck avatar warm-byte avatar wwxinzhen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.