Skip to content

Why is there no guarantee that a provider event will be emitted after flag values have changed? #1761

@man85

Description

@man85

I noticed that after many incorrect JSON flag data there was no client.onProviderError.
The reason is here. Is it possible for the provider to send an event for every new flag data?

Additionally,FlagStore may ignore sending events if its queue is full. Is this behavior intentional, and is it possible to fix it?

I need the provider to emit an event after the data has been sent to it for next task.

I need to pass only validated flags to the app, but flags can only be validated after they come into a provider.
I decided to create providers with checked and unchecked domains. Once flags come into the unchecked domain, validation should be performed; if it succeeds, flags are passed into the checked domain.
However, to avoid deadlocks or race conditions, an event should be emitted every time flags are passed to the unchecked domain, but currently, it isn't.

Could you fix this? Or I can try and make a PR?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions