Giter Site home page Giter Site logo

Comments (1)

nevir avatar nevir commented on July 30, 2024

I don't know if hermes will really solve this for you (no more than any other pure-JS cache implementation would, at least). Hermes (and Apollo's default implementation) load the entire cache into the memory; there's no back and forth with the disk beyond that point.

Since, AFAIK, you can't perform RPC between iOS apps: you would need to serialize the cache to disk (in a shared location, like one managed via an app group) when switching between apps.

I'm also assuming you're in a react native world? The other unfortunate reality is that shuffling data along RN's bridge is pretty expensive, so you want to minimize the amount of time spent hydrating/dehydrating cache data.

Due to all that, I don't think concurrent access is really feasible with hermes :(

That said, it might be feasible to refactor hermes to track diffs between past "save points", so that you can minimize the time spent saving/restoring state between app switches. Synchronizing those deltas across multiple apps might get tricky, though.

from apollo-cache-hermes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.