[jira] [Commented] (CAMEL-11174) REST-DSL support for Google Protobuf
[ https://issues.apache.org/jira/browse/CAMEL-11174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16245447#comment-16245447 ] Luis commented on CAMEL-11174: -- Hi [~dmvolod]: Thank you for this pointer to gRPC/jersey bridge I will have a look at it. Kindly Luis Oscar Trigueiros > REST-DSL support for Google Protobuf > > > Key: CAMEL-11174 > URL: https://issues.apache.org/jira/browse/CAMEL-11174 > Project: Camel > Issue Type: New Feature > Components: camel-core, camel-grpc >Reporter: Luis >Assignee: Dmitry Volodin > Fix For: Future > > > It would be nice to be able to output something other that just XML/JSON > from a camel rest dsl route, namely Google Protobuf or Apache thrift. > The idea would be that one could have addional MIME types add one could > define how they are handled. > So for example application/x-protobuf could be handle by Protobuf. > One example article that comes to mind is: > https://javarants.com/using-jax-rs-with-protocol-buffers-for-high-performance-rest-apis-563ce40d15d9 -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (CAMEL-11174) REST-DSL support for Google Protobuf
[ https://issues.apache.org/jira/browse/CAMEL-11174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16243592#comment-16243592 ] Dmitry Volodin commented on CAMEL-11174: Also [gRPC<->Jersey bridge|https://github.com/fullcontact/grpc-jersey] has the similar feature. However, need to define what kind of features we need to implement: - auto generate Camel REST DSL editable route(s) - auto generate embedded and not editable and pass through protobuf via REST - JAX RS extension for gRPC/Thrift > REST-DSL support for Google Protobuf > > > Key: CAMEL-11174 > URL: https://issues.apache.org/jira/browse/CAMEL-11174 > Project: Camel > Issue Type: New Feature > Components: camel-core, camel-grpc >Reporter: Luis > > It would be nice to be able to output something other that just XML/JSON > from a camel rest dsl route, namely Google Protobuf or Apache thrift. > The idea would be that one could have addional MIME types add one could > define how they are handled. > So for example application/x-protobuf could be handle by Protobuf. > One example article that comes to mind is: > https://javarants.com/using-jax-rs-with-protocol-buffers-for-high-performance-rest-apis-563ce40d15d9 -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (CAMEL-11174) REST-DSL support for Google Protobuf
[ https://issues.apache.org/jira/browse/CAMEL-11174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15987037#comment-15987037 ] Luis commented on CAMEL-11174: -- Hi [~dmvolod]: If would love to have a go at testing this component for something I am working on as I already have the the service proto defintions. Many thanks, kindly Luis Oscar > REST-DSL support for Google Protobuf > > > Key: CAMEL-11174 > URL: https://issues.apache.org/jira/browse/CAMEL-11174 > Project: Camel > Issue Type: New Feature > Components: camel-core >Reporter: Luis > > It would be nice to be able to output something other that just XML/JSON > from a camel rest dsl route, namely Google Protobuf or Apache thrift. > The idea would be that one could have addional MIME types add one could > define how they are handled. > So for example application/x-protobuf could be handle by Protobuf. > One example article that comes to mind is: > https://javarants.com/using-jax-rs-with-protocol-buffers-for-high-performance-rest-apis-563ce40d15d9 -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (CAMEL-11174) REST-DSL support for Google Protobuf
[ https://issues.apache.org/jira/browse/CAMEL-11174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15987025#comment-15987025 ] Dmitry Volodin commented on CAMEL-11174: Thanks for ideas Luis! As camel-grpc client component will be released as part of 2.19 build, we are working on the native server implementation now. Looks like a new camel-grpc-gateway component need to be implemented and integrated with swagger-rest-dsl-generator Please also note, that starting 2.19 camel-protobuf data format able to marshal/unmarshal from/to JSON in advance to binary data. > REST-DSL support for Google Protobuf > > > Key: CAMEL-11174 > URL: https://issues.apache.org/jira/browse/CAMEL-11174 > Project: Camel > Issue Type: New Feature > Components: camel-core >Reporter: Luis > > It would be nice to be able to output something other that just XML/JSON > from a camel rest dsl route, namely Google Protobuf or Apache thrift. > The idea would be that one could have addional MIME types add one could > define how they are handled. > So for example application/x-protobuf could be handle by Protobuf. > One example article that comes to mind is: > https://javarants.com/using-jax-rs-with-protocol-buffers-for-high-performance-rest-apis-563ce40d15d9 -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (CAMEL-11174) REST-DSL support for Google Protobuf
[ https://issues.apache.org/jira/browse/CAMEL-11174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15986908#comment-15986908 ] Luis commented on CAMEL-11174: -- Hi [~dmvolod]: This is cool I did not knew this, but the use case that I am also thinking of is to be able to expose the swagger documentation of a gRCP IDL via camel rest swagger interface. This already exists done by Google example is: #https://github.com/grpc-ecosystem/grpc-gateway #https://speakerdeck.com/thesandlord/grpc-vs-rest-api-strat-2016 > REST-DSL support for Google Protobuf > > > Key: CAMEL-11174 > URL: https://issues.apache.org/jira/browse/CAMEL-11174 > Project: Camel > Issue Type: New Feature > Components: camel-core >Reporter: Luis > > It would be nice to be able to output something other that just XML/JSON > from a camel rest dsl route, namely Google Protobuf or Apache thrift. > The idea would be that one could have addional MIME types add one could > define how they are handled. > So for example application/x-protobuf could be handle by Protobuf. > One example article that comes to mind is: > https://javarants.com/using-jax-rs-with-protocol-buffers-for-high-performance-rest-apis-563ce40d15d9 -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (CAMEL-11174) REST-DSL support for Google Protobuf
[ https://issues.apache.org/jira/browse/CAMEL-11174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15985253#comment-15985253 ] Dmitry Volodin commented on CAMEL-11174: Hi Luis! It's a not a good idea to overload core and rest-dsl subsystems with non-typical functions, i.e. marshal/unmarshal third-party binary formats, etc. As camel supports protobuf format OOB, you could create a very simple route like this for implementing described scenario: http://camel.apache.org/schema/spring;> P.S. The gRPC or Thrift RPC are working much quickly, however your case is good example to be implemented as sample. > REST-DSL support for Google Protobuf > > > Key: CAMEL-11174 > URL: https://issues.apache.org/jira/browse/CAMEL-11174 > Project: Camel > Issue Type: New Feature > Components: camel-core >Reporter: Luis > > It would be nice to be able to output something other that just XML/JSON > from a camel rest dsl route, namely Google Protobuf or Apache thrift. > The idea would be that one could have addional MIME types add one could > define how they are handled. > So for example application/x-protobuf could be handle by Protobuf. > One example article that comes to mind is: > https://javarants.com/using-jax-rs-with-protocol-buffers-for-high-performance-rest-apis-563ce40d15d9 -- This message was sent by Atlassian JIRA (v6.3.15#6346)