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

Offering I/O vectors for sending multiple messages #1612

Closed
mmottl opened this issue Jun 21, 2024 · 1 comment
Closed

Offering I/O vectors for sending multiple messages #1612

mmottl opened this issue Jun 21, 2024 · 1 comment

Comments

@mmottl
Copy link

mmottl commented Jun 21, 2024

Aeron already provides for functions like aeron_publication_offerv to combine multiple I/O vectors into a single message. Would it be possible to support operations that treat each I/O vector as an individual message?

In my case, I have an array of iovecs from a writev operation that persists message batches to disk before sending. Since those iovecs are identical to aeron_iovec_stct, it would be quite convenient and presumably more efficient if I could just hand them to Aeron in one call.

@mjpt777
Copy link
Contributor

mjpt777 commented Aug 12, 2024

Aeron provides efficient batching into datagrams so this type of enhancement would not be as beneficial as with other messaging system. Multiple messages in single offers could also result in failures due to flow control windows. We do not see this is a good thing for Aeron.

@mjpt777 mjpt777 closed this as completed Aug 12, 2024
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