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

Task 2.4.1: Implement efficient Broadcast stream for high concurrency use case #116

Open
Tracked by #56
idky137 opened this issue Nov 20, 2024 · 0 comments
Open
Tracked by #56
Labels
tracking ZGM2 Issues that need to be resolved for the completion of the Zaino dev grant milestone 2

Comments

@idky137
Copy link
Contributor

idky137 commented Nov 20, 2024

Zaino's internal mempool will need to be able to serve a large number of clients concurrently. For this reason a simple broadcast may not be the best approach. We require lock free read access from an arbitrary number of client tasks and clone free update of the channel.

One possible approach is to use evmap (or possible dashmap) as a lock free map and either a broadcast or watch to alert listeners of updates.

This should be build so it can be used for any efficient broadcast streams required in Zaino (eg. the non-finalised state in #122)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tracking ZGM2 Issues that need to be resolved for the completion of the Zaino dev grant milestone 2
Projects
Status: Ready
Development

No branches or pull requests

1 participant