[ https://issues.apache.org/jira/browse/KAFKA-9993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17108795#comment-17108795 ]
John Roesler commented on KAFKA-9993: ------------------------------------- Thanks for the context, Boyang! > 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 > Priority: Major > > 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)