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

2018-07-19 Thread wujimin (JIRA)


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

wujimin commented on SCB-748:
-

1.not official module

2.don't know if support codec based on IDL not java class, from the README.md, 
it seems that similar to protoStuff based on java class

  we need to check this.

> 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)


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

2018-07-19 Thread Yang Bo (JIRA)


[ 
https://issues.apache.org/jira/browse/SCB-748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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)