Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jaxrs-dev] [External] : Re: Jakarta REST 4.0 - Brainstorming
  • From: Santiago Pericasgeertsen <santiago.pericasgeertsen@xxxxxxxxxx>
  • Date: Mon, 24 May 2021 18:23:16 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=67rRawQ/tV3A8elMdfQae0qx/eyG1k0xTA4u0UJSic4=; b=fjspXFX5jk/jA1JPl7b/dUxT1fcbFnSBZbOjkQ8XKRCzUBDg3JhlsWO2f5hSpJb+mfPH2JZzBq+s1/RDhHRqt66b4xBemoFYpP4PuKP75cBSvmumHe8UlMQ3c6hZ3+mgFIJvGMa2huiJLmC/N6Z5tFI8R8OnAAlstJcC3TwdrHP3WKIApw6qz7f+0zfdE73ovuOT5cs9AgTt0bHwMYpgP9V78/R0dnPpQHtZOCZrTPrZoTZe5ZK85VpE9RGJUPcdFb79L//mENSaE6nD077Eibd1pfVdtRJZiME+YPyxhvbdepTryujwGYZb3WpwLP1uM4n4zfusTVxfi/LfpdFwdA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d8EN+0gar4iQEAtWHHFNnh7sUZp+w9XuD3h8w0NGqlV58s5PM63VM+khtAWeEDrIOXvJ4HEe8MEScABMJA6SCyTiedGwutmFG2voYV+IqmlQRYrROLySrpzO0fJfpSJUNbXj+soUel2x3JXNtE/YQTRH+UTq2iaeJ965dD81e1NMXmK1PHihAOYkit40wV64YORiWMtxxnEKMWX69iMYJ+U9BNeFhFFiUGWK/LIj8vZ1UCONoDsTB0VW8TtXrdkNdp/kS4+gXH9IYQAIUpf3oWUm8WZv5JAd5bmvVp+RZb2FM3ue3+mAnQWtnD+TtgInAQ+C1If1l3YxTYpQgbOljA==
  • Delivered-to: jaxrs-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/jaxrs-dev/>
  • List-help: <mailto:jaxrs-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/jaxrs-dev>, <mailto:jaxrs-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/jaxrs-dev>, <mailto:jaxrs-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHXTlBy25L2ier5YUOFz4EskdV6aaruMkqAgATEzoA=
  • Thread-topic: [External] : Re: [jaxrs-dev] Jakarta REST 4.0 - Brainstorming

Hi Andy,

This is very nice!  I really like the integration with CDI and being able to reduce redundant code (like @Suspended AsyncResponse, removing @Context for Sse, etc.). I also like the idea of supporting 0 or >1 Application subclasses.  


 Great.

The injection of @*Param into constructors will only work with @RequestScoped resources (especially in cases like slide 4 where the param is a String - which is final, so cannot be proxied), so we will need some language (and probably test cases) that prevent that with @ApplicationScoped resources.

 Yes, implementations would need to check that. 


In general, I'm +1 for supporting the Flow APIs for SSEs. We did something similar for MP Rest Client (using Reactive Streams since we had to support Java 8). I think this will simplify the process of sending asynchronous events.

 Absolutely.


Some other thoughts for 4.0 (mostly half-baked at best...):
* Is there anything we can do with HTTP/2?  

 Server push for example? 
 
* Pull in the MP Rest Client?

 Sure, this is more political than technical.

* Utilize Jakarta Config for runtime properties? Perhaps make Jakarta Config properties available in Application#getProperties()?

 Perhaps, but not sure we want to have a compile-time dependency with Config. 


Our roadmap page[1] also mentions a 3.2 release. Are we still thinking of doing that? I think I'd prefer to skip 3.2 and go straight to 4.0 after we complete 3.1.

 We should probably update that. Feel free.

— Santiago


On Fri, May 21, 2021 at 9:49 AM Santiago Pericasgeertsen <santiago.pericasgeertsen@xxxxxxxxxx> wrote:
Hi All,

 I put together some slides with thoughts about Jakarta REST 4.0 and CDI. Also created a branch in my fork that includes all the necessary changes to build a small sample.

 Hope you find this useful to get us started.

— Santiago

[1] https://github.com/spericas/jaxrs-api/blob/release-4.0/JakartaRest40.pdf
[2] https://github.com/spericas/jaxrs-api/tree/release-4.0


_______________________________________________
jaxrs-dev mailing list
jaxrs-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jaxrs-dev
_______________________________________________
jaxrs-dev mailing list
jaxrs-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://urldefense.com/v3/__https://www.eclipse.org/mailman/listinfo/jaxrs-dev__;!!GqivPVa7Brio!LlpBJIABDxI5RdkaiyFAa34IacBsMtPd23fo9nKKiYE4s8U02SD60_Sz1GyVHEHfXRzrs1AESQ$


Back to the top