An extension providing support for Narayana Long Running Actions (LRAs)
See original GitHub issueMicroProfile LRA is a specification of an API that enables loosely coupled JAX-RS services to coordinate long running activities in such a way as to guarantee a globally consistent outcome without the need to take long duration locks on data.
The project is currently at version 1.0-RC1 and we would like the candidates to be available for running with quarkus. I believe this will bring in more users and will ideally provide us with useful feedback on the candidate releases.
The Narayana implementation has two pieces:
-
a coordinator which maintains information about participants enlisted in the LRA and which coordinates the closure or cancellation of an LRA in order to ensure that all participants are reliably notified of the decision to close/cancel the LRA
-
some annotations and a JAX-RS filter which intercepts JAX-RS requests to methods annotated with
@LRA
and interacts with the coordinator to manage the lifecycle of an LRA.
This issue is to provide a quarkus extension for both of these pieces.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (5 by maintainers)
@eamazaj we are currently in the process of releasing MP LRA 1.0 and a Narayana version that would implement this API. I believe that @mmusgrov plans to reopen the Quarkus extension PR for LRA right after we have a Narayana release out.
The quarkus extension and quickstart are done. I just need to rework the integration test - previously we embedded an LRA coordinator with the service but that functionality (two JAX-RS applications per deployment) has been removed so I need to figure out how to start the coordinator before running the test. Now in narayana we do that with an arquillian extension but that won’t work in with quarkus integration test so I I asked the question on zulip chat [1]. I guess that team is pretty busy but I know it’s possible (for example see the quarkus-test-framework module). I have a little spare time this afternoon so I will take another look to see how to do it.
[1] https://quarkusio.zulipchat.com/#narrow/stream/187030-users/topic/Start.20a.20second.20service.20in.20an.20integration.20test
On Thu, May 27, 2021 at 6:29 AM Nahuel Olgiati @.***> wrote:
– Michael Musgrove @.***
JBoss, by Red Hat Registered Address: Red Hat Ltd, 6700 Cork Airport Business Park, Kinsale Road, Co. Cork. Registered in the Companies Registration Office, Parnell House, 14 Parnell Square, Dublin 1, Ireland, No.304873 Directors:Michael Cunningham (USA), Vicky Wiseman (USA), Michael O’Neill, Keith Phelan, Matt Parson (USA)