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

Using multiple Orleans clusters (multiple clients) #211

Closed
rore opened this issue Mar 9, 2015 · 4 comments
Closed

Using multiple Orleans clusters (multiple clients) #211

rore opened this issue Mar 9, 2015 · 4 comments

Comments

@rore
Copy link

rore commented Mar 9, 2015

As far as I can tell, currently there is no way of an application to use more than a single client to communicate with Orleans.

But, what about a scenario of having multiple Orleans clusters, each providing different services (and grains)?
If you want to build multiple backend systems running on Orleans, without coupling them into a single cluster, there's no way of communicating with them from a single application (as you can't instantiate multiple clients).
This means you have to add an additional layer on top of that (providing, for instance, a REST interface in front of each cluster), which is a big overhead if there's no need to expose these to the outside.

Is there an intention to make the client to be an instance and not static so you can create multiple clients to multiple clusters?

@sergeybykov
Copy link
Contributor

Currently, a client is limited to an app domain. So it is possible to connect to more than one cluster by initializing clients for different clusters in different app domains, although this is an obvious hassle.

Yes, we'd like to remove this limitation. Ideas and PRs are welcome.

@gabikliot
Copy link
Contributor

To add to what Sergey wrote, it is quite easy to host each client in a separate app domain. You can follow the example here of how to start a silo in a separate app domain. It would be quite similar for the client.

@rore
Copy link
Author

rore commented Mar 9, 2015

OK, I see. A bit of a hassle indeed but probably workable for now. Thanks!

@ReubenBond
Copy link
Member

This is being tracked by #467.

@ghost ghost locked as resolved and limited conversation to collaborators Sep 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants