Do Logux?

Watched a lecture on Logux, the method is adequate, even surprisingly that until now such an approach is no implemented.
Question - do the library?
Are there any other implementation of this approach?
April 4th 20 at 13:21
2 answers
April 4th 20 at 13:23
Hi. Relevant — the project evolves and the tasks are now are often. Recently released documentation and a beautiful website for the project. Themselves use it in production and know a few of the projects that implemented Logics.

Logax worth watching if:

  1. You have on the website, multiple users can edit a single document is very often in different adminco where in the company of several managers. There are competitors are generally small, but Logics will give 100% solution, it will be necessary to properly think through atomic operations. Although even if you do not consider to be better than with AJAX/GraphQL.
  2. If you need update the data without reloading the page. There are many solutions, but Logax great to go if you have Redux — not necessary to make a separate compatibility layer, simply forward action. Well, all sorts of nice things there — sync between the tabs and the correct behavior in offline, etc.
  3. If you need optimistic UI when the form is closed immediately by clicking on Save. It's cool speeds up the UI, but it is clear that just for one or two forms makes no sense to add Logex. It's more like an added bonus
  4. If you are tired of crooked work as modern applications with real network. This was the main reason for the creation of Logics for me. I want to get data between tabs synchronized. So the application does not show the endless criticism if the Internet was gone (which is constantly). Unlike AJAX and GraphQL, Logix immediately made on the basis of the real Internet, rather than the ideal connection to localhost-the localhost on the developer's machine.

Competitors: for problem 1 you can take the Firebase, but this vendor lock-in, it is difficult to use their database and conflict resolution is a little worse. For problem 2 there are many solutions (Google for websocket js) including GraphQL but a lot less thought-out solutions to extreme cases (e.g., different order of events on different clients will result in different results). For optimistic UI, too, there are solutions, most of them also breaks down in the real world (what will happen if the server crashed).

But even now there are many attempts to recreate the connection to the server — the same gun.js. Googly for CRDT js.

Questions may be addressed to us in giter-chat.
April 4th 20 at 13:25
Relevant to what? for the task it is designed to solve - probably relevant.
About no one has implemented - implementation details is one thing, but decide on the whole task is another.

So realtime collaborative editing of documents has made a lot of people and some even successfully it is developed and sold for lots of money.

And this same thing exactly in this way - well, maybe.
Too narrow the problem to the library was like super popular and everyone knew it. In General, this functionality few people need.
Too narrow a task

In the video the example was cited with the usual comment on the site.
Wrote a comment, pressed send and continued to go about their business, and you don't have the Internet or not.
Not such a narrow objective

did have a lot of people and some even successfully

But they are hardly isolated in a separate public library - dee commented on April 4th 20 at 13:28
Wrote a comment, pressed send and continued to go about their business, and you don't have the Internet or not.

Recorded in the localStorage, there was an Internet - sent. What's the problem? - Pearline commented on April 4th 20 at 13:31
@Pearline, how do you know that the Internet appeared? Constantly requests to send to the server? - dee commented on April 4th 20 at 13:34
@dee, Yes, to put on cron job - Pearline commented on April 4th 20 at 13:37
@Pearlineon the client? - ricky commented on April 4th 20 at 13:40
@deel, not woken up yet... Yes, on the client once a minute to knock on the server, setInterval and stuff - Pearline commented on April 4th 20 at 13:43

Find more questions by tags JavaScript