-
Notifications
You must be signed in to change notification settings - Fork 5
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
asymmetric request-reply #46
Comments
Hum, stupid question: can't you just reply with a message that contains the proper answer as a boolean and keep the rest of the message empty? |
That's a good question :) and I'm not sure. |
On the server side the benefit is clear, but on the client side this will introduce more complexity when dealing with failure cases. For example, a
If we change to something like |
Yes, the user should handle exceptions. :-) I've been using Alternatively, you could do this: |
It looks like request-reply is currently symmetric. In other words, the entire object is sent to the server, which processes the object, and then the entire object is sent back to the client. I have a scenario where the request object is large, and the reply is only a boolean. My application is performance-critical, so I want to minimize the data which is returned to the client. It would be helpful if
simple
could support an asymmetric request-reply like this:The text was updated successfully, but these errors were encountered: