Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rev-up and snapshot from best responder #6

Open
gsvarovsky opened this issue Oct 5, 2019 · 0 comments
Open

Rev-up and snapshot from best responder #6

gsvarovsky opened this issue Oct 5, 2019 · 0 comments
Labels
investigate Extra attention is needed performance

Comments

@gsvarovsky
Copy link
Member

gsvarovsky commented Oct 5, 2019

Note: this applies to "pubsub"-style remotes, which at present is all of them: MQTT, Ably & socket.io. The remotes concept in general can do whatever it likes.

Rather than sending requests to clones in arbitrary order, recovery could publish its request and only ack the fastest response (sending 'abort' to any others).

  • + simple optimisation for latency
  • + does not require complex/brittle channel presence (possibly doesn't work well in a split-brain, Split-brain handling #29)
  • - requires an extra round of conversation, to minimise open transactions, because a responder currently opens a transaction when responding successfully
  • + saves on presence messages (probably broadcast) but
  • - multiplies recovery messages (broadcast)

In addition to latency, a collaborator may have better or worse response efficiency due to:

  • platform limitations (e.g. favour servers)
  • journal optimisations (favour compressed)
@gsvarovsky gsvarovsky transferred this issue from another repository Apr 22, 2020
@gsvarovsky gsvarovsky changed the title Rev-up and snapshot from first responder Rev-up and snapshot from best responder May 18, 2020
@gsvarovsky gsvarovsky added this to To do in m-ld backlog Aug 28, 2020
@gsvarovsky gsvarovsky moved this from To do to In progress in m-ld backlog Oct 31, 2020
@gsvarovsky gsvarovsky moved this from In progress to To do in m-ld backlog Nov 3, 2020
@gsvarovsky gsvarovsky added the investigate Extra attention is needed label Aug 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate Extra attention is needed performance
Projects
Development

No branches or pull requests

1 participant