Skip to content

[FEATURE] EventStreamResponse optimization #238

@james-milligan

Description

@james-milligan

Requirements

When multiple flags are updated simultaneously flagd sends multiple configuration_change events with the following structure:

{
  "type": "configuration_change",
  "data": {
    "type": "delete",
    "source": "file:config/samples/example_flags.json",
    "flagKey": "myBoolFlag"
  }
}

These events should be consolidated into one single configuration change event.
for example:

{
  "type": "configuration_change",
  "data": {
    "flags": {
      "myBoolFlag": {
        "type": "delete",
        "source": "file:config/samples/example_flags.json"
      },
      "myStringFlag": {
        "type": "update",
        "source": "file:config/samples/example_flags.json"
      }
    }
  }
}

These changes should be made in the updateState method found in pkg/runtime/runtime.go

Metadata

Metadata

Assignees

Labels

Needs TriageThis issue needs to be investigated by a maintainerenhancementNew feature or request

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions