Skip to content

RegisterService is only called once #16

@mrf460

Description

@mrf460

@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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions