Low-level high-performance Golang client library for Taooka distributed lock manager .
$ go get github.com/MichaelMonashev/sync/netmutex
Its source will be in:
$GOPATH/src/github.com/MichaelMonashev/sync/netmutex
See: godoc.org/github.com/MichaelMonashev/sync/netmutex
or run:
$ godoc github.com/MichaelMonashev/sync/netmutex
200000+ locks per second on 8-core Linux box.
Steps:
- connect to lock server
- lock key
- execute critical section
- unlock key
- close connection
See full example in sync/netmutex godoc