Hi there, Just in case someone is interested: I am working an a framework that supports format-agnostic marshalling: https://github.com/m-m-m/marshall On top of that there are real Java beans with awesome features and automatic marhsalling: https://github.com/m-m-m/bean On top of that you can implement RPC services in an agnostic way with sync/async/reactive support: https://github.com/m-m-m/rpc With all that you can implement your server with very little code and on one HTTP/2 port. Users can invoke your service and choose the format via content-type as JSON, YAML, XML, or ProtoBuf/gRPC. Also the provided client can support all this with synchronous and asynchronous usage. All runs in JVM, as well as in the browser cross-compiled as JS/WASM via TeaVM, or cloud-native via GraalVM.
Still a whole lot of work to do but maybe someone here also likes to join in or have a look... Most promising part of the project however is this one: https://github.com/m-m-m/ui-api Yes, I know that we are reinventing the wheel but there are reasons: https://github.com/m-m-m/mmm/wiki/reinvent-the-wheel Cheers Jörg [email protected] schrieb am Mittwoch, 10. März 2021 um 01:46:29 UTC+1: > Oh. I misread the question. I was talking about a scenario where you have > a grpc interface already and looking to add a rest interface. My bad. > > On Wed, Mar 10, 2021 at 12:57 AM Sanjay Pujare <[email protected]> > wrote: > >> Envoy is unnecessary if you run the gRPC server on a different port. >> >> On Tue, Mar 9, 2021 at 12:39 AM Russell Wu <[email protected]> wrote: >> >>> I think you can achieve that in many different ways, some options: >>> 1. Add a service controller layer that implements the actual business >>> logic between grpc/rest interface implementations and your DAO. >>> 2. Use envoy to provide a rest proxy in front of grpc service >>> >>> >>> On Tue, Mar 9, 2021 at 4:08 PM Mahesh Kanote <[email protected]> >>> wrote: >>> >>>> Yes, we can do that by running grpc server on different port. >>>> >>>> Thanks, >>>> Mahewj >>>> >>>> On Tue, Mar 9, 2021, 1:30 PM Pawan Shriwas <[email protected]> >>>> wrote: >>>> >>>>> I am talking about the case where my spring boot application server >>>>> which is right now equipped with rest interfaces, I want it to be also >>>>> equipped with gRPC interfaces for same service layer so that my same >>>>> micro-service support same service interface for rest and gRCP. >>>>> >>>>> for more understanding i have draw the case below that i need rest and >>>>> grcp in my application, let me know if that is feasible. >>>>> >>>>> [image: Untitled Diagram (1).png] >>>>> >>>>> >>>>> On Monday, March 8, 2021 at 9:55:37 PM UTC+5:30 [email protected] >>>>> wrote: >>>>> >>>>>> Yes, you can use the gRPC client for talking to gRPC services and a >>>>>> REST client for talking to REST services assuming you are talking about >>>>>> client side coexistence. >>>>>> >>>>>> On Mon, Mar 8, 2021 at 7:26 AM Pawan Shriwas <[email protected]> >>>>>> wrote: >>>>>> >>>>>>> Hi Guys, >>>>>>> >>>>>>> I there any way where we can use Rest and gRPC in together in >>>>>>> spring-boot/java application. >>>>>>> >>>>>>> Thanks in advance. >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> You received this message because you are subscribed to the Google >>>>>>> Groups "grpc.io" group. >>>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>>> send an email to [email protected]. >>>>>>> To view this discussion on the web visit >>>>>>> https://groups.google.com/d/msgid/grpc-io/7614e847-21bc-4571-9231-c433ac6a1fadn%40googlegroups.com >>>>>>> >>>>>>> <https://groups.google.com/d/msgid/grpc-io/7614e847-21bc-4571-9231-c433ac6a1fadn%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>> . >>>>>>> >>>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "grpc.io" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/grpc-io/651cba87-c998-4c3e-9d0d-db36d41ddbe4n%40googlegroups.com >>>>> >>>>> <https://groups.google.com/d/msgid/grpc-io/651cba87-c998-4c3e-9d0d-db36d41ddbe4n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "grpc.io" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/grpc-io/CAFgyg%3DAVO26WXTez-ZaWbw70EYx3VThaL199u9mF_geNuyt2Rg%40mail.gmail.com >>>> >>>> <https://groups.google.com/d/msgid/grpc-io/CAFgyg%3DAVO26WXTez-ZaWbw70EYx3VThaL199u9mF_geNuyt2Rg%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "grpc.io" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/grpc-io/CAABt8Y_Af1d%3DjbwLLCctkb3zQJzwzV95b4eQA5QgXJzoED1NFA%40mail.gmail.com >>> >>> <https://groups.google.com/d/msgid/grpc-io/CAABt8Y_Af1d%3DjbwLLCctkb3zQJzwzV95b4eQA5QgXJzoED1NFA%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/c6320910-294b-4c95-b3b0-978e8d81e9a0n%40googlegroups.com.
