Stream: hapi
Topic: hapi-fhir
Mayur Bathar (Mar 11 2021 at 06:36):
Hi
Mayur Bathar (Mar 11 2021 at 06:38):
Is it possible to use hapi plain server framework with gRPC client?
Lloyd McKenzie (Mar 11 2021 at 15:43):
You might ask on #hapi - more HAPI folks hang out there than here.
Notification Bot (Mar 11 2021 at 19:28):
This topic was moved here from #implementers > hapi-fhir by Josh Mandel
Jens Villadsen (Mar 11 2021 at 19:30):
I dont understand the question, im afraid
Richard Stanley (Mar 11 2021 at 20:05):
I would be curious to know if someone created grpc stubs with protobuf support to work as a proxy in front of HAPI, but I haven’t seen anything yet. If indeed that’s what the OP was asking.
Jens Villadsen (Mar 11 2021 at 21:12):
And you goal with such a proxy would be to save bandwidth?
Jens Villadsen (Mar 11 2021 at 21:13):
I don't think it would take an enourmous effort of work actually
Richard Stanley (Mar 12 2021 at 16:07):
Exactly, it would be for pushing data through small pipes, e.g. Android clients on low bandwidth networks. Thought of doing it in Go. But it's an imaginary use case for my work, just a fun idea. If you have thoughts on how to design and approach it, please do share :)
James Agnew (Mar 16 2021 at 19:59):
I've often thought it'd be really cool to implement a protobuf parser/serializer in HAPI FHIR to compliment the xml/json/ttl ones.. I bet the JPA server would actually get some nice benefit from this.
Bryn Rhodes (Mar 16 2021 at 20:46):
@Jing Tang, thoughts?
Richard Stanley (Mar 16 2021 at 20:58):
@James Agnew, oh pretty please. That would be a lot better than putting a proxy in front of HAPI. Adding @Carl Leitner to this thread for his info.
Jing Tang (Mar 16 2021 at 22:29):
Given a HAPI resource, we can use reflection to go over the fields and try to construct a proto that way. But then, my question is, is it actually worth the effort, how much faster would that be, and why not just go via the JSON format (hapi -> json -> proto in memory -> proto wire format)? So perhaps the way to do this is via code generation to get adapters that map each hapi class to a proto class.
Jing Tang (Mar 16 2021 at 22:31):
But yeah - I'd love to explore this a bit. Would be super cool.
Jens Villadsen (Mar 18 2021 at 08:01):
@Richard Stanley have you looked at eg. the fhir mapping to protobuf by Google?:
<dependency>
<groupId>com.google.fhir</groupId>
<artifactId>r4</artifactId>
<version>0.6.1</version>
</dependency>
Richard Stanley (Mar 18 2021 at 13:19):
Yep :)
Mayur Bathar (Mar 18 2021 at 14:55):
How to create swagger documentation using Hapi plain server library in spring boot using java?
Mayur Bathar (Mar 18 2021 at 15:03):
How to create documentation using Hapi plain server library in spring boot using java?
Last updated: Apr 12 2022 at 19:14 UTC