growthbook-python icon indicating copy to clipboard operation
growthbook-python copied to clipboard

Adds support for asyncio based sticky bucketing, caching and tracking

Open palle-k opened this issue 11 months ago • 3 comments

This PR adds support for AsyncIO based sticky bucketing, caching and tracking.

To do so, it introduces an AsyncGrowthBook class (and corresponding AbstractAsyncStickyBucketService and AbstractAsyncFeatureCache classes).

Addresses #28

palle-k avatar Feb 10 '25 14:02 palle-k

Hi, @palle-k. Could you please fix the conflicts on the branch?

vazarkevych avatar Feb 12 '25 14:02 vazarkevych

@vazarkevych updated.

Haven't addressed the GrowthBookClient. It would probably be ideal to completely separate async and non-async implementations here, meaning that there's a GrowthBookClient with no async methods and an AsyncGrowthBookClient with async methods - same for GrowthBook and AsyncGrowthBook.

That would introduce more breaking changes though.

palle-k avatar Feb 13 '25 09:02 palle-k

Hi, @palle-k. Could you please check conflicts again?

vazarkevych avatar Feb 25 '25 12:02 vazarkevych

@palle-k , There were several improvements added to GrowthBookClient to make it work in async contexts. please check and refresh this PR if you find anything missing in the current implementation. Thank you for your contributions.

madhuchavva avatar Jun 11 '25 18:06 madhuchavva