-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A way to send push notifications to update client-side cache when a flag changes in the backend. #3458
Comments
Good idea @umarlateef ! We could implement Server Sent Events (SSE) in Flipt server and expose an endpoint where our client side SDKs can subscribe to these events. Here's how I'm thinking this could work:
|
@markphelps That will solve the problem, and help us reduce the load on the server. |
@umarlateef 👋🏻 This may not be what you're looking for as its not in open source Flipt yet.. but we did just release streaming support to our client side SDKs for Flipt Cloud. https://docs.flipt.io/integration/client#polling-vs-streaming |
Is this solution available only for flipt cloud? Not available for self hosted solutions? |
That's awesome. Thanks for the quick reply. |
Problem
There is a possibility that users may set the cache refresh interval too low, which could lead to undesired traffic and load on the server. This can be inefficient and unnecessary, as it increases server load even when no changes have been made.
A more efficient approach would be to notify clients when a change in their feature toggle occurs, allowing them to refresh the local cache only when necessary.
Ideal Solution
Implement a system that sends a push notification to clients when there is a change in their feature toggle. Upon receiving this notification, the clients can refresh their local cache accordingly. This approach would reduce server traffic and ensure that the cache is updated only when needed, improving overall performance.
Search
Additional Context
No response
The text was updated successfully, but these errors were encountered: