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

Brain should have a look-up service #24

Open
bklang opened this issue Jan 16, 2014 · 0 comments
Open

Brain should have a look-up service #24

bklang opened this issue Jan 16, 2014 · 0 comments

Comments

@bklang
Copy link
Member

bklang commented Jan 16, 2014

In a large multi-user environment, it's going to be important that a single Brain entity handles all requests for a given user during a session. It may be that the user provides inputs via IM and receives outputs via Audio, or vice versa. As such, we want to keep that state within a single brain. To achieve this at scale, we will need to be able to dynamically start a Brain for a user on any available host when the first request comes in. If the user has an existing session, we should route all messages to the running Brain appropriate for that user.

The implementation of the lookup service can be made very thin. Some ideas:

  • Use DNS to publish the location of the currently running Brain
  • Use a consistent hashing algorithm to determine the correct running node for a Brain (see: Memcached)
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