https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
s

swift-scooter-80871

12/08/2023, 4:43 AM
Hi team, I understand I can create an "A/B experiment feature" and sample the users using any of the "identifier attributes". I can then integrate a Java SDK in my application to do traffic split. But this would mean SDK will call growthbook api for every incoming user. Due to high user traffic I want to avoid SDK hitting growthbook for every incoming user. I want to "randomly" assign incoming users to A/B experiment and want the SDK to do it in application itself without reaching out to growthbook for every incoming user. Is this possible with current sdk. Apologies if this is too obvious and if I missed something in docs.
f

fresh-football-47124

12/08/2023, 4:44 AM
the SDK does not need to hit the API per user
the payload of the rules to assign users is the same for all (until you update the features) - so it can be cached
If caching isn't an option, you can do as you describe with inline experiments
s

swift-scooter-80871

12/08/2023, 5:56 AM
ok, thanks for quick response
4 Views