Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jaxrs-dev] Guidance for adoption of Reactive APIs

Hi James,

 Thanks for sharing your work here. 

 Let me start with a quick summary about the JAX-RS discussions we had during 2.1:

 (i) As you know, most JAX-RS use cases involve the return of a single value, an entity. Thus, support for CompletionStage was a natural extension to the API.

 (ii) We discussed the use of Flow in the context of SSE. As I recall, there were two issues with it: (1) we could not depend on JDK 9 (as you discuss in your document) and (2) the resulting API, unsurprisingly, felt a bit “generic”.

 (iii) There are other cases in JAX-RS were reactive streams could be of use (e.g., StreamingOutput) but these are very uncommon.

 Reactive streams are a much better fit in Web servers (Web sockets) and other “lower-level" APIs. In light of this, I’m curious about how you envision adoption of reactive APIs in the current MP stack where REST and JAX-RS are at the core of application development. Is it primarily via a future messaging API? Or some other API?

— Santiago

On May 14, 2018, at 11:20 PM, James Roper <james@xxxxxxxxxxxxx> wrote:

Hi all,

I just wanted to bring to everyones attention a document that we're creating in MicroProfile for guidance in adopting reactive APIs. I understand that JAX-RS 2.1 already has some support for CompletionStage, and that future releases are likely to include support for Reactive Streams (indeed some implementations already do support it).

Although JAX-RS technically isn't under the MicroProfile banner, this document will hopefully be used at least for inspiration, if not adopted in some form, in Jakarta EE. It would be great if some JAX-RS people could review it and comment accordingly.


Cheers,

James

--
James Roper
Senior Octonaut

Lightbend – Build reactive apps!
Twitter: @jroper

_______________________________________________
jaxrs-dev mailing list
jaxrs-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jaxrs-dev


Back to the top