Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
For data storage, we have a caching layer that receives data from the cloud and stores it both in memory and on device. Then there is a pub model that notifies listeners when the data has been updated. it's pretty simple but works great! I like hyperoslo's implementation for cache: https://github.com/hyperoslo/Cache For units, we just build a protocol for the internet piece and provide the data locally. We cache the unit test data in a different folder on device and it all works seamlessly. I think the hardest part there was intercepting the HTTP requests and forking to the local test data. The key there was implementing a URLProtocol subclass.