celluloid / floss

UNMAINTAINED: See celluloid/celluloid#779 - A Ruby implementation of the Raft consensus algorithm.
MIT License
77 stars 14 forks source link

Implement a DCell registry #14

Open aflatter opened 11 years ago

aflatter commented 11 years ago

All current DCell registries depend on a separate service. A floss-based registry would be able to run within each DCell node.

aflatter commented 11 years ago

This is blocked by #7: Two nodes starting on separate processes will most definitely time out on start-up. #6 would be really useful too.

aflatter commented 11 years ago

Work happening on the 14-dcell-registry branch.

halorgium commented 11 years ago

@aflatter wahoo!

tarcieri commented 11 years ago

We might want to clean up the registry API before this happens

aflatter commented 11 years ago

Any pointers to documentation of those plans?

tarcieri commented 11 years ago

Not really, but perhaps as an implementer of a registry you might have some opinions. The problem with the existing API is that it couples two similar concerns into a single class (node registry and global registry). Perhaps they should simply be the same thing.

aflatter commented 11 years ago

Yes, noticed that. I may take a stab at refactoring this :-)

halorgium commented 11 years ago

What @tarcieri is talking about is probably the change I made to @fujin's DCell commit. celluloid/dcell@cd8bc0fb385ed7cddee4fd6b4d587b5b8089bd5f

tarcieri commented 11 years ago

@halorgium yes, this! :smiley_cat:

fujin commented 11 years ago

:metal: