Boyang Chen created KAFKA-9993:
----------------------------------

             Summary: Think about inheritance in the protocol generation 
framework
                 Key: KAFKA-9993
                 URL: https://issues.apache.org/jira/browse/KAFKA-9993
             Project: Kafka
          Issue Type: Improvement
            Reporter: Boyang Chen


We have seen that there are a lot of common fields inside the request/response 
templates that could be extracted as a super class for auto generated classes. 
For example most response contains a top level error code. Currently to build a 
service receiving multiple RPCs, the code template produces a lot of redundant 
error code extraction logic which is far from ideal. 

What we want to discuss is whether to enable the general inheritance mechanism 
in this framework, what's the trade-off and complexity increase, and if there 
is any workaround just to make less boiler templates.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to