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

Extending nameserver #90

Open
bpatzak opened this issue Feb 29, 2024 · 2 comments
Open

Extending nameserver #90

bpatzak opened this issue Feb 29, 2024 · 2 comments

Comments

@bpatzak
Copy link

bpatzak commented Feb 29, 2024

We are interested in extending nameserver functionality. In particular, registering the multiple instances of same class and letting nameserver to generate unique name for them. The idea is to use metadata that will use class name as a metadata attribute allowing to get list of all instances. The new method will generate and return unique name for new class instance, something like classname.#n, where #n is unique id of instance. Hopefully we can do this outside Pyro on our side simply by creating a derived class form NameServer class. I wonder to know if there is any potential drawback of doing it like this.

Thanks,
Borek

@irmen
Copy link
Owner

irmen commented Feb 29, 2024

I think it's fine? and basically what the "distributed-computgin3" example also does, among others? https://github.com/irmen/Pyro5/tree/master/examples/distributed-computing3

No nameserver modificaton needed at all

@bpatzak
Copy link
Author

bpatzak commented Mar 2, 2024

Thank you for pointing to example that I was not aware of. The example relies on client to generate unique names. I would like to ensure consistent, unique name generation on nameserver side, that is why I consider extending NameServer class.

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