Skip to content
Yang Shuang edited this page Jan 24, 2022 · 14 revisions

DTC 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 promote QPS zoom.

The DTC system consists of the following components:

  • Agent - Provides key consistent hash routing in order to reduce connections and improve performance.
  • Dtcd - Provides hot data caching service.
  • Connector - Provides connection and communication between cache and persistent storage database such as MYSQL.

Feature

  • Database Protection.
    • protection for null node, prevent cache breakdown.
    • provide long-term data caching, and prevent cache penetration.
    • data source thread available, protect the database with a limited number of connections.
    • Estimated timeout policy to reduce invalid database requests.
  • Data consistency.
    • write-through policy, ensure cache and database data consistent.
    • barrier policy to prevent update requests lost while concurrcy.
  • Performance.
    • integrated memroy allocation policy to avoid frequent system calls.
    • I/O multiplexing to handle concurrcy requests.
    • multiple data structure models to improve memory performance.
  • Scalability.
Clone this wiki locally