@cjus
In the function RegisterService() , the following code is called:
var db = GetDatabase();
var key = $"{_redis_pre_key}:{ServiceName}:service";
await db.StringSetAsync(key, StandardSerializer.Serialize(new RegistrationEntry
{
ServiceName = ServiceName,
Type = ServiceType,
}));
await db.KeyExpireAsync(key, TimeSpan.FromSeconds(_KEY_EXPIRATION_TTL));
However, this function is only called once at initialization. This means that the hydra:service:{servicename}:service key only exists for the initial 3 seconds. Should this instead be refreshed with the presence key? Or is it not important?
@cjus
In the function
RegisterService(), the following code is called:However, this function is only called once at initialization. This means that the
hydra:service:{servicename}:servicekey only exists for the initial 3 seconds. Should this instead be refreshed with the presence key? Or is it not important?