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

Refactoring #101

Open
3 tasks
bitwalker opened this issue Aug 25, 2018 · 3 comments
Open
3 tasks

Refactoring #101

bitwalker opened this issue Aug 25, 2018 · 3 comments

Comments

@bitwalker
Copy link
Owner

Swarm needs some refactoring to better support testing, configuration and to better integrate with other applications.

The biggest change that needs to occur is that we need to move Swarm away from a "singleton" application/process, which runs on boot, to a supervison tree that is added to a supervision tree, is namespaced, and joins with other members of a cluster that share that namespace. I already have a branch where I've done much of this work, but I'm probably going to rework it when #94 is merged.

In addition, I want to rewrite the tests to make use of ex_unit_clustered_case, and to run asynchronously.

In short:

  • Rework Swarm into a library application providing a supervision tree
  • Rather than a "singleton" process, require configuration which applies a namespace to the Swarm supervision tree, this allows us to still a priori know the process name on other nodes, but it allows running multiple swarms simultaneously - this is particularly useful in tests, but has practical applications as well.
  • Rework existing tests to use ex_unit_clustered_case

/cc @beardedeagle @arjan - since you two are the most active contributors, I'd love your feedback, and if you are interested in becoming committers so we can keep this project moving along at a nice clip, let me know!

@arjan
Copy link
Collaborator

arjan commented Aug 28, 2018

Definitely interested in becoming comitter, would be great. I'll be back early next week to finish #94.

@beardedeagle
Copy link
Collaborator

Color me interested as well.

@bitwalker
Copy link
Owner Author

Awesome! Hit me up on IRC or Slack when you want have some time to talk, and I'll cover my ground rules, then add you to the project contributors :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants