You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "Yang Bo (JIRA)" <ji...@apache.org> on 2018/07/19 08:29:00 UTC

[jira] [Commented] (SCB-748) ServiceComb engine resource optimize

    [ https://issues.apache.org/jira/browse/SCB-748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16548987#comment-16548987 ] 

Yang Bo commented on SCB-748:
-----------------------------

Jackson now has some protobuf3 support. https://github.com/HubSpot/jackson-datatype-protobuf/blob/jackson29-proto3/README.md#protobuf-3-support

> ServiceComb engine resource optimize
> ------------------------------------
>
>                 Key: SCB-748
>                 URL: https://issues.apache.org/jira/browse/SCB-748
>             Project: Apache ServiceComb
>          Issue Type: Task
>          Components: Java-Chassis
>            Reporter: wujimin
>            Assignee: wujimin
>            Priority: Major
>
> to support protobuf codec not coupled with business logic, we must create classloader for each microserviceId(app/microservice/version), and create classes in it dynamiclly.
>  that makes logic very complex, because must support generic and recursive reference.
>  and in edge, create too many classes, will cause jvm meta area overflow
> so we will change invocation mechanism from strong type to weak type:
>  * protobuf codec based on IDL not model class, maybe will switch from protoStuff to jackson, (protoStuff not support IDL, jackson support idl but not support protobuf V3)
>  * delete all mechanism related to dynamic class creation
>  * invocation not unify to RPC argument, but unify to HttpServletRequestEx



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)