Skip to content
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

Add Flipt Java SDK backend #1

Merged
merged 4 commits into from
Jul 26, 2023
Merged

Add Flipt Java SDK backend #1

merged 4 commits into from
Jul 26, 2023

Conversation

alexcardell
Copy link
Owner

This scraps the original API and intention to resolve segments locally. That is something to investigate but for a pragmatic start I'm mirroring the Flipt API and will tinker with some other SDKs and find the common effectful vs pure parts.

Flipt seems to make a HTTP request for everything, including getting flags. It is possible to list multiple flags but it's unclear if the API automatically paginates, meaning we could miss flags trying to get them all up front. It also evaluates segments server side, however the ideal goal here is fetch the whole flag state once in request middleware, cache it, and have enough info to resolve segment allocation locally.

Will eventually tinker with a pure Scala Flipt reimplementation, and see how much can be done app-side instead of server side.

@alexcardell alexcardell merged commit c3ad633 into master Jul 26, 2023
@alexcardell alexcardell deleted the flipt branch July 26, 2023 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant