Quarkus offers a great development experience. In this session, I’ll introduce you to the power of Quarkus Live Coding and tools that are useful to developers for debugging, deploying, and testing Quarkus applications.
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Quarkus tips, tricks, and techniques
1. 1
Max Rydahl Andersen, Distinguished Engineer, Red Hat
@maxandersen
Tips, tricks, and techniques
2. Me in 2018-2019
After ~20 years in Java Enterprise and Development Tools
- is that all we can do ?
Worked in Go for 2 years
Took a year off - had fun with Python
...then started hearing about a fun project inside Red Hat….
6. Quarkus Tools
Tooling done by Quarkus community and Red Hat Developer
Language Server Based
VSCode Eclipse IntelliJ
Community
and Ultimate
che.openshift.io
9. @
@
</>
Load config file from file system
Parse it
How does a framework start?
Build Time
Runtime
10. How does a framework start?
@
@
</>
Classpath scanning to find
annotated classes
Attempt to load class to
enable/disable features
Build Time
Runtime
11. How does a framework start?
@
@
</>
Build its model of
the world.
Build Time
Runtime
12. How does a framework start?
@
@
</>
Start the
management
(thread, pool…)
Build Time
Runtime
16. Command Mode
New feature in Quarkus 1.4
Use cases: command line tools, one-off scripts, batch operations, console, Swing,
JavaFX apps ?
Works with quarkus:dev
17. Ngrok
Create tunnel via ngrok.io to your machine to show of your awesome work!
Can be used standalone or use Community Quarkus Extension for zero-setup
<dependency>
<groupId>com.github.quarkus-extension</groupId>
<artifactId>quarkus-ngrok-extension</artifactId>
<version>master-SNAPSHOT</version>
</dependency>
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
18. Wireshark
Kitchen sink to do all kind of network tracing
When you can’t remember all the logging/setting
Filter all data on loopback and do:
“http and tcp.port eq 8080 and http.request.full_uri contains "/hello"”
19. What just happened ?
Fast
Just Works, with or without IDE plugins
Zero config / Zero install
Extendable
- Ngrok
- kubernetes/openshift
- Container, jib, s2i
- Debezium
- Kafka
- Camel... bit.ly/dkquarkus2019 19
21. Questions ?
More (virtual) talks from @maxandersen:
- Quarkus: Black swan of Java ?
- April 30th, Switzerland JUG
- JBang: Unleash the power of Java for shell scripting
- May 29th, DevNation