Coder Social home page Coder Social logo

Comments (4)

tshedor avatar tshedor commented on August 15, 2024 1

Hey @ccfiel thanks for using Brick.

I'm not exactly familiar with these services on the client, but I'm going to do my best here.

They are somewhat similar. Both services support offline caching of organized data.

To my understanding, CouchDB performs a sync of the entire dataset by maintaining a changelog. This permits batching requests. Brick, on the client, will notify your API when something's been changed locally and will continue to retry that request to the API until the API acknowledges it's received the data with a successful status code or response.

For Realm, if you're using it with a service like Mongo the sync is performed (I believe), but if you're using it as an on-device cache, then Realm is most like SQLite.

I'm not as read on the fetching of data, so I'll only explain how Brick does it - data is fetched when it is not present or when it's requested explicitly using OfflineFirstPolicy.awaitRemote.

Does that answer your question? Do you have a specific part of the Couch or Realm docs that you're curious about / what the equivalent is in Brick?

from brick.

hortigado avatar hortigado commented on August 15, 2024

@ccfiel Yes, its similar

from brick.

tshedor avatar tshedor commented on August 15, 2024

@ccfiel going to close this due to inactivity

from brick.

ccfiel avatar ccfiel commented on August 15, 2024

@tshedor, thanks for the answer! :) This is an excellent project! So, if the client is offline, it will record all the activities offline, and If the client is online again, it will send all the offline activity logs to the provider. The provider will decide how the log activities data will be processed. Did I get it right?

from brick.

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.