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

Support HTTP for Sirius following instead of Akka remoting #140

Open
HaloFour opened this issue Jul 18, 2019 · 0 comments
Open

Support HTTP for Sirius following instead of Akka remoting #140

HaloFour opened this issue Jul 18, 2019 · 0 comments

Comments

@HaloFour
Copy link
Collaborator

Sirius relies on Akka remoting in order for nodes to catchup with each other. This has a few drawbacks:

  1. Akka remoting protocol is not stable between versions of Akka
  2. Akka remoting requires bidirectional communication between nodes

I propose adding support into Sirius for HTTP-based following where Sirius can be configured to listen on a given port and accept HTTP requests for log ranges. Following nodes would be configured with the URI through which to request those log ranges, which could be behind a load balancer.

I've already implemented this behavior in my Spring application by disabling Akka-based catchup and tapping into the Akka actor system directly to read log subranges and to replay them and it works quite well. The Spring controllers support streaming which allows the followers to request the entire log from a given sequence.

@HaloFour HaloFour changed the title Use HTTP for Sirius following Support HTTP for Sirius following instead of Akka remoting Jul 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant