pogreb icon indicating copy to clipboard operation
pogreb copied to clipboard

Its safe for multiple go instance writes?

Open fe3dback opened this issue 4 years ago • 1 comments

Hi, from documentation its clear that storage can work with multiple goroutines inside one singleton application. But can it work in scaled applications?

For example, i have N instances of go application. Each have X goroutines. N * X functions will write data to db file in parallel, its safe?

fe3dback avatar Jul 24 '21 14:07 fe3dback

Right now Pogreb doesn't support opening same database from multiple processes. When you open a database, Pogreb creates a lock file. You'll get database is locked error if you try to open the database twice.

akrylysov avatar Jul 24 '21 14:07 akrylysov