FlyingZC opened a new issue, #24519:
URL: https://github.com/apache/shardingsphere/issues/24519
# Background
Hi community.
We want to support the global clock feature in ShardingSphere to ensure
consistent reading and writing of distributed transactions.We will provide the
global clock implementation based on TSO and HLC in the future.
# Global Clock Rule
Based on the pluggable architecture of ShardingSphere, we can easily add a
Global Clock rule.
The main configuration properties of Global Clock RULE are as follows:
type: the type of Global Clock, such as TSO, HLC
provider: the provider type of Global Clock
enabled: since this function is currently an experimental function, users
need to manually enable this function
The example configuration is as follows:
```yaml
globalClock:
type: TSO
provider: redis
enabled: true
props:
host: 127.0.0.1
port: 6379
```
# Class Diagram

GlobalClockRule: manage the global clock configuration
GlobalClockProvider: the provider of global clock
TransactionHook: provide hooks during the execution of transactions
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail:
[email protected]
For queries about this service, please contact Infrastructure at:
[email protected]