You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "liubao (Jira)" <ji...@apache.org> on 2020/02/21 02:57:00 UTC
[jira] [Resolved] (SCB-676) protobuf codec based on idl
[ https://issues.apache.org/jira/browse/SCB-676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
liubao resolved SCB-676.
------------------------
Resolution: Fixed
> protobuf codec based on idl
> ---------------------------
>
> Key: SCB-676
> URL: https://issues.apache.org/jira/browse/SCB-676
> Project: Apache ServiceComb
> Issue Type: Task
> Components: Java-Chassis
> Reporter: Jimin Wu
> Assignee: Jimin Wu
> Priority: Major
>
> compare to jackson protobuf:
> * can parse protobuf 3 proto file
> * support protobuf 3: map/any
> compare to protoStuff runtime:
> * for a proto message type, not only support strong type(Pojo), but alse support weak type(Map)
> * support "any" type
> * support generic pojo type, eg:CustomGeneric<User>
> compare to standard protobuf:
> * extend "any" type, for standard not support cases, use "json" schema to codec it.
> compare to all:
> * just pojo, no need any code generation and annotation
> * one pojo can serialize to different version proto file to support different version server
> * wrap List<List<X>>/List<Map<X, Y>>/Map<X, List<Y>>/Map<X, Map<Y, Z>> to standard proto idl, makes model more flexible
> * support text data come from http,can serrialize from different data type
> ** number fields (int32/int64 and so on)
> *** number
> *** String
> *** String[]
> ** string fields
> *** string
> *** string[]
> ** bool fields
> *** boolean
> *** string
> *** string[]
> ** enum fields
> *** enum
> *** number
> *** string
> *** string[]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)