You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking for some suggestions on how (and if) message filtering can be implemented. Specifically, how can an Actor implement some sort of message filtering where unless an actor (X) explicitly enables "reception", it will not be able to receive messages. This would apply to both ActorRef based tell() or ask() as well as via ActorProxy.
The filtering can be on the recipient side where the actor to whom the message is destined to, won't have it's on_receive() triggered unless the reception is Enabled. In this scenario, the sender doesn't know about the receiver's Enable/Disable state of reception and would assume that the message was delivered to the receiver. Alternately, the sender's tell(), ask() or the proxy method can fail if the receiver has not yet Enabled reception.
Any suggestions on how this can be done would be really helpful! I can think of a few ways how this can be achieved but this is all application logic. Any native-Pykka (or close to it) way of doing it will be nice.
This discussion was converted from issue #82 on December 15, 2020 11:20.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm looking for some suggestions on how (and if) message filtering can be implemented. Specifically, how can an Actor implement some sort of message filtering where unless an actor (X) explicitly enables "reception", it will not be able to receive messages. This would apply to both
ActorRef
basedtell()
orask()
as well as viaActorProxy
.The filtering can be on the recipient side where the actor to whom the message is destined to, won't have it's
on_receive()
triggered unless the reception is Enabled. In this scenario, the sender doesn't know about the receiver's Enable/Disable state of reception and would assume that the message was delivered to the receiver. Alternately, the sender'stell()
,ask()
or the proxy method can fail if the receiver has not yet Enabled reception.Any suggestions on how this can be done would be really helpful! I can think of a few ways how this can be achieved but this is all application logic. Any native-Pykka (or close to it) way of doing it will be nice.
Beta Was this translation helpful? Give feedback.
All reactions