This message was deleted.
# ask-questions
w
This message was deleted.
f
Hi Bardur, thanks
well, it will start to throw errors with the API connections
but we encourage caching of the features json so there are no hard dependancies
šŸ‘ 1
c
thank you for the quick answer šŸ™‚ I have a follow-up question: What will the SDK deliver in case the MongoDB crashes? Will it throw errors as well?
šŸ‘ 1
f
For Mongo, it's recommended to run a 3-member replica set in production and use persistent volumes for storage.
As for the SDKs, with the exception of Kotlin, none of the SDKs make any network requests. You pass in a JSON object with feature definitions. If you fetch that JSON directly from the GrowthBook API endpoint, then it will fail if mongo or the API is down. We recommend adding a caching layer so that even with GrowthBook down, you can still fetch the latest features JSON from the cache
šŸ‘ 2
p
I’m curious, why does Kotlin SDK need network access?
f
It handles fetching and caching feature configs. The swift SDK also does this, but it's not required. You can just pass in JSON directly.
142 Views