https://github.com/qbhy/golang-demo-id
https://github.com/qbhy/golang-demo-id
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/qbhy/golang-demo-id
- Owner: qbhy
- Created: 2020-12-06T10:12:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-11T10:06:31.000Z (over 4 years ago)
- Last Synced: 2025-01-30T13:23:08.364Z (3 months ago)
- Language: Go
- Size: 22.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 分布式ID
> 本项目仅供学习交流,请勿在生产环境中使用## 功能
* 分布式自增ID
* 分布式锁(还须完善锁过期时间功能)
* 其他计数场景,如点赞数、浏览数等...## 特性
* 支持数据持久化到文件,启动的时候自动从文件恢复
* 主从复制(暂未实现)
* 支持集群(暂未实现)