feat: [FFM-12441]: Optimise SSE events #404
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
Why
Testing
Manually went through the following AC
Acceptance Criteria
Proxy Running
Given I toggle a flag
Then The Proxy should receive an SSE event from Saas, fetch the updated config and store it in redis
And A PATCH SSE event should be forwarded on to my SDK
Given I delete a flag
Then the Proxy should receive a DELETE SSE event and remove the flag from redis
And a DELETE SSE event should be forwarded on to my SDK
Given I create a flag
Then the Proxy should receive a CREATE SSE event from Saas, fetch the config & store it in redis
And a CREATE SSE event should be forwarded on to my SDK
Proxy Disconnected From Saas
Given I delete a flag
When the Proxy reconnects to Saas
Then It should remove the flag from redis & send a DELETE SSE event to SDKs
Given I create a flag
When the Proxy reconnects to Saas
Then it should add the new flag to redis & send a CREATE SSE event to SDKs
Given I patch a flag
When the proxy reconnects to Saas
Then it should update the flags config in redis & send s PATCH sse event