-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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?
Metadata
Metadata
Assignees
Labels
No labels