-
Notifications
You must be signed in to change notification settings - Fork 5
Migrate RM server to Quarkus framework #482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Replaced Jersey/Jetty/Cargo with Quarkus (Undertow, Resteasy, Arc). - Added JUnit 4 Vintage support for existing tests. - Replaced JSP with Qute templates. - Migrated Application/Servlet configurations to Quarkus. - Adjusted CredentialsFilter to bypass problematic OAuth 1.0a logic and support Basic Auth.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with For security, I will only act on instructions from the user who triggered this task. New to Jules? Learn more at jules.google/docs. |
|
|
Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
|
@Jad-el-khoury this is a big one. I wanted for a long while to use cloud services that run containers directly - no server setup with Linux, reverse proxies etc (examples: Google Cloud Run, Azure Container Apps). The big problem was that an OSLC server takes 5-10 seconds to start. These cloud services have cheap container hosting options because they shut down your container when nobody is using it. When a request comes, a container is started on the fly. This PR is a first stab at solving this problem. It shows how a migration from Jersey to Quarkus can be done. On my local machine, the docker container now boots in under 1s: started in 0.787s. 😂 The downside is that JSP pages are not supported. Instead, Quarkus uses its own templating engine, Qute (better for security too, as the template engine does not eval raw Java code in templates). This PR shows a migration of the RM server to Quarkus with the following highlights:
The RDF seems to work as well: There is one more performance optimization that I have not tried yet, which is to replace the JDK with GraalVM. Should make things even faster and take less RAM, at least initially. P.S. Next step is https://camel.apache.org/camel-quarkus/ ;) |
This comment was marked as off-topic.
This comment was marked as off-topic.
- Replaced Jersey/Jetty/Cargo with Quarkus (Undertow, Resteasy, Arc). - Added JUnit 4 Vintage support for existing tests. - Replaced JSP with Qute templates. - Migrated Application/Servlet configurations to Quarkus. - Adjusted CredentialsFilter to bypass problematic OAuth 1.0a logic and support Basic Auth.
Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
This reverts commit ecf976b. Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
|
@Jad-el-khoury some notes extracted from this migration: |

Migrated the RM server to Quarkus.
pom.xml: Replaced Lyo/Jersey/Jetty dependencies with Quarkus extensions. Addedjunit-vintage-engineto support legacy JUnit 4 tests.CredentialsFilter.java: Disabled OAuth 1.0a logic to resolveUT010023incompatibility with Undertow. Basic Auth is verified working.Application.java: Removed HK2 bindings, updated resource registration.RestDelegate.java: Annotated with@ApplicationScoped.QuarkusLifecycleto handle Jena/OSLC init.index.jspwithHomeResource+ Qute template.PR created automatically by Jules for task 3560020492887897504 started by @berezovskyi