Go C#

Identity Lookup (.NET)

Identity lookup allows the Proto.Cluster to use different strategies to locate virtual actors.

device-123  on member-5ClientPidCacheIdentityLookupalt[Entry in PidCache not found]where is the device-123 actor located?it's on member-5where is the device-123 actor located?ok, found itit's on member-5here's a message for youdevice-123  on member-5ClientPidCacheIdentityLookup

If the actor is not activated yet, it will be activated according to the member strategy.

device-123  on member-5ClientIdentityLookupMemberStrategywhere is the device-123 actor located?it's not activated yetwhere do I activate a device?try member-5activateit's on member-5here's a message for youdevice-123  on member-5ClientIdentityLookupMemberStrategy

Depending on the use case, different strategy will be suitable.

  • Partition Identity Lookup - the actor locations are partitioned and stored in memory. Each cluster member is responsible for a single partition. Use this implementation if you are unsure what fits your use case.

  • DB Identity Lookup - implementation based on an external database that stores all the actor locations.

  • Partition Activator Lookup (Experimental) - implementation based on consistent hashing. Location is assigned by the hash function, member strategy is ignored.

Topics
Icon