PostHog / posthog

🦔 PostHog provides open-source web & product analytics, session recording, feature flagging and A/B testing that you can self-host. Get started - free.
https://posthog.com
Other
22.3k stars 1.35k forks source link

Feature flags for Java #16419

Open annikaschmid opened 1 year ago

annikaschmid commented 1 year ago

The Feature Success team is currently considering extending our official Java library to support feature flags and experiments.

If you like this idea, please leave a 👍 or ❤️ reaction on this post to vote for it -- your votes and feedback help us prioritize what to work on next!

miguelhrocha commented 6 months ago

Hello @annikaschmid !

I understand that there is a proposal to unify the posthog-java and the posthog-android SDK, which makes sense from a code base standpoint. I hope my pull requests help with building the foundations for the base classes, if these end up not being merged.

I just wanted to bring to your attention that I have implemented an MVP version for feature flags in Java. Should be in the following PRs:

  1. https://github.com/PostHog/posthog-java/pull/54
  2. https://github.com/PostHog/posthog-java/pull/55
  3. https://github.com/PostHog/posthog-java/pull/56
  4. https://github.com/PostHog/posthog-java/pull/57
  5. https://github.com/PostHog/posthog.com/pull/8593

CC @jamesefhawkins a follow up of our Friday conversation 😄

Hronom commented 3 months ago

When will this be done?

It's important because on java usually written backends, where one of the main things - activation of some logic based on Feature Flags

Hronom commented 3 months ago

Also I would like to add, that we need local evaluation support for FF too, so we don't need to care about how many call's we generate to /decide endpoint. Otherwise it makes production integration in Java hard to do.