https://github.com/distributedio/happy
Happy Hackathon
https://github.com/distributedio/happy
Last synced: 3 months ago
JSON representation
Happy Hackathon
- Host: GitHub
- URL: https://github.com/distributedio/happy
- Owner: distributedio
- License: mit
- Created: 2019-10-26T02:11:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-26T18:49:51.000Z (over 5 years ago)
- Last Synced: 2024-10-29T18:58:21.245Z (8 months ago)
- Language: Go
- Size: 35.2 KB
- Stars: 0
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TiKV Spanner transaction interface SDK
## RO/RW Transaction lifetime
### Begin()
* do nothing, gen txn struct with RO/RW### Get()
* get TS if not exist
* start heartbeat with transaction nodes
* call tikv get RO/RW with TS### Set()/Delete()
* store key value in local storage(map)### Commit()
* map & gather all keys with regions
* choose coordinator leader
* call commit on every perticipators and leader