Skip to content

colinrs/groupcache-db-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

groupcache-db-example

这是一个使用groupcache的例子

如何让这个例子跑起来

  • git clone [email protected]:colinrs/groupcache-db-example.git
  • cd groupcache-db-example
  • make run
    • 将API和 DBServer编译
    • 将API服务和DBServer服务在后台启动

example 架构如下

  • API服务接收来自用户的请求
    • 每一个API服务都有一个groupcache实例
  • groupcache 最终的数据源是 DBServer

img.png

API 接口

DBServer 接口

About

groupcache-db-experiment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages