Skip to content

Feature request: streaming/SSE updates to avoid full environment-document polling #195

Description

@adamvialpando

Is your feature request related to a problem?

The Edge Proxy polls /api/v1/environment-document/ on a fixed interval. Deployments running many proxy instances with short poll intervals results in an unnecessary amount of API requests to the Core API. Since this was implemented, the load caused by these requests is fairly low since the environment rarely changes in relation to the polling interval, but the requests could be redundant nonetheless.

The time taken for a change to a flag to be reflected in the API served by each Edge Proxy instance is also therefore dependent on the polling interval. When using longer polling intervals (to optimise API requests for example), a change could take up to one full polling interval to be reflected in the API served by the Edge Proxy.

Describe the solution you would like

A streaming or push based update channel (for example SSE) for environment updates, so a proxy is notified when an environment changes rather than polling the Core API.

Additional context

Most relevant for high instance count deployments.

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