go语言使用redis做分布式锁,并采用分布式调度的方式进行真实模拟验证。
Go to file
2025-02-14 11:22:35 +08:00
engine 扣减库存使用lua脚本,保证锁存在时才可以操作。主程序对返回数据做校验,对错误任务进行重试。 2025-02-14 11:22:35 +08:00
redisLock 扣减库存使用lua脚本,保证锁存在时才可以操作。主程序对返回数据做校验,对错误任务进行重试。 2025-02-14 11:22:35 +08:00
rpcSupport init 2025-02-06 16:48:15 +08:00
scheduler init 2025-02-06 16:48:15 +08:00
worker 扣减库存使用lua脚本,保证锁存在时才可以操作。主程序对返回数据做校验,对错误任务进行重试。 2025-02-14 11:22:35 +08:00
.gitignore Initial commit 2025-02-06 16:44:01 +08:00
Dockerfile add Dockerfile 2025-02-10 09:47:17 +08:00
go.mod init 2025-02-06 16:48:15 +08:00
go.sum init 2025-02-06 16:48:15 +08:00
main.go 扣减库存使用lua脚本,保证锁存在时才可以操作。主程序对返回数据做校验,对错误任务进行重试。 2025-02-14 11:22:35 +08:00
README.md Initial commit 2025-02-06 16:44:01 +08:00

goRedisDLM

go语言使用redis做分布式锁并采用分布式调度的方式进行真实模拟验证。