Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Its safe for multiple go instance writes? #46

Open
fe3dback opened this issue Jul 24, 2021 · 1 comment
Open

Its safe for multiple go instance writes? #46

fe3dback opened this issue Jul 24, 2021 · 1 comment

Comments

@fe3dback
Copy link

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?

@akrylysov
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants