Comments (4)
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.
@ccfiel Yes, its similar
from brick.
@ccfiel going to close this due to inactivity
from brick.
@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)
- Function afterSave() is generated wrong HOT 7
- databaseFactoryFfi not save data in local HOT 1
- Outdated package dependencies HOT 1
- Support to windows not work HOT 3
- Adapter file not generated when uniquely identified field is a class and no primitive HOT 14
- multipart request HOT 8
- Feature: Support for more database adapters HOT 2
- Relative imports in models are not correctly transferred to brick.g.dart HOT 2
- Question (Perhaps Not an Issue) About topLevelKey HOT 2
- Dependencies Issue HOT 2
- Getting POST When I Need PUT HOT 5
- Handling Expired Access Keys in Offline Request Queue HOT 2
- Question: How to correctly upsert an association to a REST Provider? HOT 6
- Proposal: add the response details to the offline request queue HOT 4
- Documents that do not exist remotely are not deleted from local memory HOT 1
- Remove Items From Outbound Queue HOT 4
- Problem Re-initializing HOT 8
- Duplicate Column in Migration Script HOT 6
- Read from REST but Don't Write Back to REST HOT 3
- Unexpected Remote Provider Calls for Associated Data HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brick.