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

Have servers report RunRouters #271

Open
CJ-Wright opened this issue May 2, 2019 · 4 comments
Open

Have servers report RunRouters #271

CJ-Wright opened this issue May 2, 2019 · 4 comments

Comments

@CJ-Wright
Copy link
Member

It would be good to have the starting of the server and the provisioning of the run router be separate steps.

@CJ-Wright
Copy link
Member Author

attn: @danielballan I think this would give very plug and play friendly (no ZMQ) versions of the servers

@danielballan
Copy link

Cool. At this point I don't have quite enough context to know what "report" means. I have to spend some time with the docs.

@CJ-Wright
Copy link
Member Author

Report = return

@CJ-Wright
Copy link
Member Author

Note that this means that the creation of a server could be a decorator.
This would lower the cognitive overhead for a very boilerplate task.

def make_server(rr_factory, prefix, inbound_proxy_addr, outbound_proxy_addr, ...):
    publisher = Publisher(...)
    def inner():
        rr = rr_factory(publisher=publisher)
        rd = RemoteDispatcher(outbound_proxy_addr, prefix=prefix)
        rd.subscribe(rr)
        rd.start()
    return inner

@st3107 st3107 linked a pull request Sep 17, 2020 that will close this issue
@st3107 st3107 removed a link to a pull request Oct 9, 2020
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