Distributed/Synchronized collections

Are you aware of any library that can sync data structures in a distributed network of app?

Or any suggestion of libs that can accomplish such advanced tasks?

Thanks!

2 Likes

Maybe you should elaborate a bit more what you mean by that?

Yeah maybe I can rephrase it like

What would be the best way in dart in to sync collections in a distributed network?

Is manual implementation the only available solution in dart right now?

I’d like to avoid too proprietary solutions like couchbase, pouchdb or any synchronizable DBs

WebServices are overkill so no firebase or supabase.

Think of it like an offline first but with much less constrains, simpler. A modified local collections is sync with other machines on modification.

The moment we move out of mobile apps, mainly reading and display features, it’s not evident to find what libs are out there.

So you are talking about peer2peer communication?

Agnostic to protocol, P2P or light server would do it but something light.
This does not deserve a whole saas.

What about pusher protocol and socketi server

They’re protocol solutions only, grpc or http 2/3 would work as well but I would still need to implement the whole algorithm myself. I guess the moment we move out of pure mobile app and firebase there’s not much solutions for general requirements.

Not sure if that is the problem or that what you want is too application specific. Why not use ObjectBox with a server?

Because it’s a huge solution and it only offer 1 month trial for the only point I’m interested in: sync

Get in touch with them. I know them they are nice people from Germany.

Have you looked at implementing something with the CRDT protocol? There are various Pub packages adopting CRDT for various mechanisms.

3 Likes

I need something much simpler, CRDT would be great for parallel editions of common structures, aka documents, here I would just make use of sync only.
But I’ll look at it, thanks Randal.

What I’m looking for would be something like Hazelcast.

1 Like