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

how do you name components e.g. using via tuples or atom names? #13

Open
shifters67 opened this issue Jan 14, 2019 · 4 comments
Open

how do you name components e.g. using via tuples or atom names? #13

shifters67 opened this issue Jan 14, 2019 · 4 comments

Comments

@shifters67
Copy link

I understand for global components that you don't give names, but how does that work across nodes e.g. i could use syn/global/horde/swarm and have multiple nodes running my program. In my current case i use syn (very nice it is too) and register the genservers with via tuples, but it is not clear from the readme how naming servers with atoms or via tuples works?

Apologies for the question if its obvious!

@pragdave
Copy link
Owner

pragdave commented Jan 14, 2019 via email

@shifters67
Copy link
Author

shifters67 commented Jan 15, 2019

HI Dave,

i think distributed programs still have the same monolithic issues so i think the component library is still just as useful as long as the components can be registered with a via tuple to a suitable distributed registry.

Implemented may be as a parameter field under your 'use' macro???

e.g. registry: {:via, :syn, name} etc

@pragdave
Copy link
Owner

pragdave commented Jan 15, 2019 via email

@shifters67
Copy link
Author

Yes that should work fine as that's currently how they are used

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

2 participants