Add topics — topic-based pub/sub for Gleam#256
Open
manelsen wants to merge 1 commit into
Open
Conversation
Member
|
Thank you, but this library has similar issues to the other one, which I provided feedback for here: #257 In OTP cleanup is performed using monitors. Worth reading up on those and looking at the source for existing pubsub systems to see how it is done. The actor based design is slow, especially since the actor is the one that sends the messages. This is likely to become a bottleneck and cause performance problems, or crashes with how the timeouts are fixed. A design that minimises the amount of work that the actor does would be better, with regular access going via an ETS table with concurrent reads enabled. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
topics
Topic-based publish/subscribe for Gleam with automatic dead subscriber cleanup.
PubSub(msg)works with any Gleam typelist_topicsexcludes empty topicsstart_linked()Links:
Category: Erlang and OTP (actor-based registry pattern, similar to
chip)