Skip to content

Use waitset in pub-sub pattern #683

Closed Answered by elBoberido
strawberry-peanut-butter asked this question in Q&A
Discussion options

You must be logged in to vote

@strawberry-peanut-butter record-replay is also on our todo list :)

Depending on the publishing frequency, the queue sizes and how important latency is, it might be more performant to poll all subscriber, e.g. every 10ms. Alternatively, you can use the events with a waitset. Here, you also have to option to reduce context switches on the producer side, by triggering the events only every N transmissions, e.g. if your queue size is 10, send a notification with every 5th sample.

@elfenpiff @orecham you can probably provide more insight into these topics.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@strawberry-peanut-butter
Comment options

@elBoberido
Comment options

Answer selected by strawberry-peanut-butter
@elfenpiff
Comment options

@orecham
Comment options

orecham Apr 15, 2025
Collaborator

@strawberry-peanut-butter
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants