WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
Quarkus - a shrink ray to your Java Application
1. kameshsampath@kamesh_sampath
a shrink ray to your Java Application
Kamesh Sampath, Director of Developer Experience Red Hat
kamesh.sampath@hotmail.com
bit.ly/quarkus-java-shrinkray bit.ly/quarkus-tutorial
18. kameshsampath@kamesh_sampath
A cohesive platform for optimized developer joy:
• Based on standards, but not limited
• Unified configuration
• Zero config, live coding in the blink of an eye
• Streamlined code for the 80% common usages, flexible
for the 20%
• No hassle native executable generation
Developer Joy
21. kameshsampath@kamesh_sampath
Supersonic Subatomic Java
Boot + First Response Time (in seconds)
Quarkus + GraalVM 0.014 Seconds
REST
REST + CRUD
Quarkus + OpenJDK 0.75 Seconds
Quarkus + GraalVM 0.055 Seconds
Quarkus + OpenJDK 2.5 Seconds
Traditional Cloud-Native Stack 9.5 Seconds
Traditional Cloud-Native Stack 4.3 Seconds
Time to first response
22. kameshsampath@kamesh_sampath
Unifies Imperative and Reactive
• 1 Engine rules them all - Vert.x
• Can use imperative and reactive depending on the use case
• From CRUD to event-driven with a single stack
@Inject
SayService say;
@GET
@Produces(MediaType.TEXT_PLAIN)
public String hello() {
return say.hello();
}
@Inject @Channel(”kafka”)
Publisher<String> reactiveSay;
@GET
@Produces(MediaType.SERVER_SENT_EVENTS)
public Publisher<String> stream() {
return reactiveSay;
}