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

Allow write to accept multiple messages? #9

Open
stetsmando opened this issue Aug 19, 2022 · 0 comments
Open

Allow write to accept multiple messages? #9

stetsmando opened this issue Aug 19, 2022 · 0 comments
Labels
considering An idea that hasn't proved valid yet. question Further information is requested

Comments

@stetsmando
Copy link
Owner

Is this something that is even needed? We could open a transaction at the DB layer and then execute multiple write_message functions, however, is that something that is desired? Or should we allow the runtime to deal with that?

There are some pros and cons to each approach. If the runtime must manage the writes, then it is possible that you will have a partial success, which will require logic to recover from. However, this will potentially allow for more throughput at the DB layer because postgres transactions lock, which means if I'm writing a large batch of message in a transaction it will lock others from writing.

Maybe both modes could exist together?

@stetsmando stetsmando added question Further information is requested considering An idea that hasn't proved valid yet. labels Aug 19, 2022
@stetsmando stetsmando changed the title Allow write to accept multiple messages Allow write to accept multiple messages? Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
considering An idea that hasn't proved valid yet. question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant