pogreb
pogreb copied to clipboard
Its safe for multiple go instance writes?
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?
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.