Closed amirylm closed 3 years ago
Currently, in in-mem message container sync.Mutex is used while sync.RWMutex can be used to apply read lock on read operations.
sync.Mutex
sync.RWMutex
Unlike regular lock, RLock allows multiple readers to acquire it.
RLock
Currently, in in-mem message container
sync.Mutex
is used whilesync.RWMutex
can be used to apply read lock on read operations.Unlike regular lock,
RLock
allows multiple readers to acquire it.