Skip to content

[Question] evaluation key storage time to live #110

@va1eb

Description

@va1eb

I tried example deployed on my server with real client and I can see that the client is not trying to store a new key using /key EP when the /queries endpoint is failing with 400 code (due to key not found error).
From the sources I see that it is required to store the key and there is a comment saying that the key size can be up to 10 MiB.
The evaluation key storage key contains User-Identifier header value (which is Pseudorandom identifier tied to a user), it is unclear is the value static for the user or it can change in certain circumentences.
Having that it looks like I have to store the evaluation key forever, but since user can try the application and never be back, and I never know this - there is a big probability I store a lot of unused data which will be a waste of my storage.

I could store the key with ttl equal to 1 month (for example) and update the ttl each time the client try to access the key but I believe there can be cases when the client try accessing /queries endpoint after the key is deleted from storage.

Could you please provide me with the answers for the following questions:

Is there any way to enforce the client to recreate and store a new key by returning a specific status code from /queries EP?
Is there any recommendation about evaluation key time to live?
Is it possible to implement logic to recreate the evaluation key in client code?

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