pragdave/component

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

Opened this issue · 4 comments

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!

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

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