pluto icon indicating copy to clipboard operation
pluto copied to clipboard

Offline edits

Open ghost opened this issue 7 years ago • 2 comments

I presume this allows offline edits ?

It's great to see more crdt examples.

I am wishing to build an actual email editor for mobile that uses crdt. Hence why I ask about offline support. Thanks again for putting up !

ghost avatar Sep 15 '18 10:09 ghost

Hi @gedw99, pluto was designed to be a server application that features multi-leader replication between several pluto instances. The intended purpose of pluto was to be a highly available IMAP server.

I guess you question refers more towards using a crdt to sync the state between a mobile imap client (with offline capabilities) and an IMAP server, like pluto. We currently have not touched this part of the synchronization, i.e. the one between client and server.

However, I'am confident that the underlying IMAP-CRDT is capable of what you want to achieve. If you are interested, you should have a look at our scientific paper where we describe the mechanics of the CRDT in detail: http://drops.dagstuhl.de/opus/volltexte/2018/8645/pdf/LIPIcs-OPODIS-2017-23.pdf

If you allow me one last comment, the IMAP-CRDT is designed to allow any number of participants, i.e. servers. The offline problem that you are working on is essentially a communication between two peers; the client and the server, right? In that case using a crdt might be a little bit of overkill and you probably want to look for further solutions (e.g. couchdb, sharedb, automerge?).

Have a great day, Tim & the pluto people :)

TimJuni avatar Sep 16 '18 20:09 TimJuni

Thanks Tim for the great reply.

Your right in your presumptions. But I think crdt is right for me because:

The system is for doctors in the 3rd world where connectivity is terrible. So much work offline.

There is no central db because of laws and practicalities of teams collaborating quickly with each other. So using webrtc data channels for direct connections with a STUN server to help them find each other when blocked via NAT on the mobile networks.

So the core is a db that is replication between peers. DHT is used to allow users to find each others IP addresses. Basically a big telephone book with their up to date IP.

Security is done by key exchange. I have to centralise , along with the STUN server. Am using consul connect for now as it has a good security key exchange approach.

If you have any thoughts you welcome to jump in. I am based in Berlin, Germany and working on a German government grant on this.

On Sun, 16 Sep 2018, 22:29 Tim Jungnickel, [email protected] wrote:

Hi @gedw99 https://github.com/gedw99, pluto was designed to be a server application that features multi-leader replication between several pluto instances. The intended purpose of pluto was to be a highly available IMAP server.

I guess you question refers more towards using a crdt to sync the state between a mobile imap client (with offline capabilities) and an IMAP server, like pluto. We currently have not touched this part of the synchronization, i.e. the one between client and server.

However, I'am confident that the underlying IMAP-CRDT is capable of what you want to achieve. If you are interested, you should have a look at our scientific paper where we describe the mechanics of the CRDT in detail:

http://drops.dagstuhl.de/opus/volltexte/2018/8645/pdf/LIPIcs-OPODIS-2017-23.pdf

If you allow me one last comment, the IMAP-CRDT is designed to allow any number of participants, i.e. servers. The offline problem that you are working on is essentially a communication between two peers; the client and the server, right? In that case using a crdt might be a little bit of overkill and you probably want to look for further solutions (e.g. couchdb, sharedb, automerge?).

Have a great day, Tim & the pluto people :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/go-pluto/pluto/issues/15#issuecomment-421827467, or mute the thread https://github.com/notifications/unsubscribe-auth/ATuCwpHT3e86GAKxVYwSZn2wTdAomw63ks5ubrTHgaJpZM4WqS0V .

ghost avatar Sep 17 '18 12:09 ghost