-
Notifications
You must be signed in to change notification settings - Fork 63
Implement json ipc #56
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
Conversation
So far invoker use hastily put together gets/puts for exchanging messages between processes. Lets replace that with proper JSON based protocol.
I really like Thor's way of command line option parsing and hence replacing it.
Implement separate command classes for handling incoming JSON messages to Server and sending responses. This will give us much better flexibility in extending invoker.
I figured Yajl does blocking read in blocks of 8092 bytes and hence it will always block unless other end writes JSON and closes the socket. Lets implement proper JSON protocol for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These I moved because we only need these things in forked process, that runs DNS server and load balancer. This greatly helped with loading time of Invoker.
|
Got the following error while running I think |
|
Good catch @abasak . yeah that will require fixing! |
This branch does not implement any new features in Invoker But:
a. replaces Slop with Thor.
b. Implements JSON IPC for exchanging messages between processes and hence making it much more extensible.