In the Actor discovery section of the documentation there is an example where Actor A spawns Actor B, and in Actor B’s setup they register with the Receptionist. However immediately after spawning Actor B, Actor A subscribes to the service key Actor B uses to register with the Receptionist. If Actor A’s subscribe message gets to the Receptionist after the Register message of Actor B wouldn’t Actor A not receive the Listing response from the Receptionist as there would be no change in the listing from the moment Actor A subscribes, thus making the example code not entirely correct?
Wouldn’t it be safer for Actor A to subscribe to the key. Spawn Actor B (without any registration in setup), and then have Actor A register Actor B themselves thus guaranteeing the ordering in which the messages arrive at the Receptionist.