-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add Unix socket broker #125
base: main
Are you sure you want to change the base?
Conversation
Oh, here's an interesting find from the demo output:
It's right about where we expected it to be. |
Again, I hit an issue where it will be difficult to move forward before #121 lands. When running commands as The reply isn't coming because |
I figured out what it was. In asyncio, there are problems having parallel tasks both listening and writing to the same connection. This is roughly the same issue I hit with pg_notify. The solution is same in form, except for the multiple tasks for different clients. |
Protocol the brokers Run demo dispatcherctl over socket Add socket broker unit tests Add socket broker usage integration tests Work out issues with test scope and server not opening client connections
This is maybe, perhaps, a solution to #100 but it is debatable.
However, it was part of the vision of
dispatcherctl
described in #61This was more complicated than I expected, but I got it working.
Using the "old" demo with 2 terminal tabs.
It now get a bit awkward because you can no longer get a response from multiple servers. But we get to the end of the demo, and it prints everything. In my first pass it broke half-way through because the message was longer than 1024. I think I'm still putting in "reply_to" which the server just ignores.
Protocols need to be updated and basically everything aside from making it run the demo once, which is all it does right now.