Merge pull request #18259 from akka/wip-13523-cluster-client-sender-patriknw
!clt #13523 Don't expose sender in cluster client replies
This commit is contained in:
commit
b73e830e75
5 changed files with 41 additions and 25 deletions
|
|
@ -54,9 +54,10 @@ to the named topic.
|
|||
Response messages from the destination actor are tunneled via the receptionist
|
||||
to avoid inbound connections from other cluster nodes to the client, i.e.
|
||||
the ``sender()``, as seen by the destination actor, is not the client itself.
|
||||
The ``sender()`` of the response messages, as seen by the client, is preserved
|
||||
as the original sender(), so the client can choose to send subsequent messages
|
||||
directly to the actor in the cluster.
|
||||
The ``sender()`` of the response messages, as seen by the client, is ``deadLetters``
|
||||
since the client should normally send subsequent messages via the ``ClusterClient``.
|
||||
It is possible to pass the the original sender inside the reply messages if
|
||||
the client is supposed to communicate directly to the actor in the cluster.
|
||||
|
||||
While establishing a connection to a receptionist the ``ClusterClient`` will buffer
|
||||
messages and send them when the connection is established. If the buffer is full
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue