You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A normal Kitex server is based on the IDL generated code, responsible for decoding requests into the go struct for the method handler. If a request with a method name not defined in its IDL is sent to this server, it will simply complain "unknown method" and refuse to process it.
Kitex also provides the "binary generic server" way, which takes in a request payload as a binary slice and sends it to the generic method handler, regardless of the method requested.
The problem is, these two types of server can not both exist within one server.
In this proposal, we sugguest an UnknownMethodHandler mechanism for a normal Kitex server to deal with requests with unknown methods.
If you are interested in implementing this feature, please reply with your lark id, and kindly prepare for a detailed tech plan.
Note: this might not be easy for a new Kitex contributor.
The text was updated successfully, but these errors were encountered:
@Zzhiter Do note that there's no way to force the client to use the same idl as the server. Say the svr has only one method Foo, you can always create another idl with method Bar for the client.
“Kitex also provides the "binary generic server" way, which takes in a request payload as a binary slice and sends it to the generic method handler, regardless of the method requested.
The problem is, these two types of server can not both exist within one server.”
@Zzhiter With this feature, a normal server shall be able to not only handle requests to its known methods, but also handle requests to unknown methods as the generic server way.
A normal Kitex server is based on the IDL generated code, responsible for decoding requests into the go struct for the method handler. If a request with a method name not defined in its IDL is sent to this server, it will simply complain "unknown method" and refuse to process it.
Kitex also provides the "binary generic server" way, which takes in a request payload as a binary slice and sends it to the generic method handler, regardless of the method requested.
The problem is, these two types of server can not both exist within one server.
In this proposal, we sugguest an
UnknownMethodHandler
mechanism for a normal Kitex server to deal with requests with unknown methods.If you are interested in implementing this feature, please reply with your lark id, and kindly prepare for a detailed tech plan.
Note: this might not be easy for a new Kitex contributor.
The text was updated successfully, but these errors were encountered: