eclipse / eavp

Eclipse advanced visualization project
Eclipse Public License 1.0
9 stars 15 forks source link

Convert services to I/O via Streams #177

Open MarkAMartin opened 5 years ago

SmithRWORNL commented 5 years ago

@jayjaybillings Currently, EAVP accepts input via post with jax rs @Consumes annotations controlling the content input type. The discussion before processing this issue is whether or not this meets the requirements for Stream input/output and if not what the requirements are.

MarkAMartin commented 5 years ago

Currently we want to use the OCTET Mime Type via JAX-RS StreamingOutput and StreamingInput.

jayjaybillings commented 5 years ago

Yes, we want to use application/octet-stream as the MIME type. We could do this with any particular RESTful service, but JAX-RS is always my go-to since it is so easy.

The other thing we discussed is that we should have build a small library that constructs the final product from the octet stream. This small library would then be a dependency for each microservice that needs it. This makes the data transfer very efficient and allows for flexibility in the marshalling and unmarshalling of data.

jayjaybillings commented 5 years ago

I have a strong preference for using JAX-RS since it is a standard and is very easy.

SmithRWORNL commented 5 years ago

This is done in the Robert/MicroServices branch.