Upgrade to Pro — share decks privately, control downloads, hide ads and more …

From Cloud-Native Java and Quarkus with Love @ DevNation Day India 2022

From Cloud-Native Java and Quarkus with Love @ DevNation Day India 2022

* Abstract:

Over the last couple of years, our industry faced many naysayers doubting that Java is ready for today's, let alone tomorrow's application development requirements. Too rigid, too fat, too slow, and too resource hungry were the usual suspects to question Java's "fitness" for developing cloud-native applications targeting Kubernetes. One day, Quarkus came along to demonstrate the exact opposite. Join this fast-paced session to learn about Quarkus, which is a new breed of Java application development framework. It builds upon well-established standards and technologies as well as battle-tested libraries, many of which you might already master or at least be familiar with. If you want to experience some of the goodness and love that Quarkus offers and brings to modern application development with Java, this talk is for you. After this session, you'll have a first impression about what it means and how it feels to develop supersonic subatomic Java applications.

* Recording: https://developers.redhat.com/devnation/devnationday-india-2022/from-cloud-native-java-quarkus

Hans-Peter Grahsl

November 09, 2022
Tweet

More Decks by Hans-Peter Grahsl

Other Decks in Programming

Transcript

  1. 1
    From Cloud-Native Java and
    with Love ❤
    dn.dev/learn
    Hans-Peter Grahsl
    Developer Advocate
    Neha Gupta
    Associate Specialist Solution
    Architect

    View Slide

  2. dn.dev/learn
    Hans-Peter Grahsl
    Developer Advocate @ Red Hat
    I’m an open-source enthusiast passionate about event-driven architectures,
    distributed stream processing systems and data engineering technologies.
    🐦 Twitter: @hpgrahsl 📧 Email: [email protected]
    👋 Meet the Speakers 👋
    Neha Gupta
    Associate Specialist Solution Architect
    I’m a App dev Specialist striving to make Open Source practical and workable for
    enterprises.
    Linkedin: linkedin.com/in/nehannn76 📧Email: [email protected]

    View Slide

  3. dn.dev/learn
    Why Quarkus?

    View Slide

  4. dn.dev/learn
    ● Startup overhead
    ○ # of classes, bytecode, JIT
    ● Memory overhead
    ○ # of classes, metadata, compilation
    4
    RSS
    Java Heap
    Metaspace Direct
    Code Internal
    Java in Containers

    View Slide

  5. dn.dev/learn
    5
    µ µ µ µ
    µ µ µ µ
    µ µ µ µ
    µ µ µ µ
    Monolith Microservices
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    λ λ
    Functions
    Java beyond the Monolith

    View Slide

  6. dn.dev/learn
    What is Quarkus?

    View Slide

  7. dn.dev/learn
    Modern Java Stack
    Cloud Native (Micro)Services Serverless

    View Slide

  8. dn.dev/learn
    ❤ Great Dev Experience

    View Slide

  9. dn.dev/learn
    ❤ Great Dev Experience
    • live reload → don’t blink ;-)
    • many convenient dev services
    • hassle-free native executables

    View Slide

  10. dn.dev/learn
    ❤ Imperative & Reactive
    • unified programming model
    • choose what best fits your use-case
    • combine both paradigms in same app

    View Slide

  11. dn.dev/learn
    ❤ Containers First
    • optimized in disk size
    • faster startup times
    • lower mem/cpu usage

    View Slide

  12. dn.dev/learn
    ❤ Containers First
    • optimized in disk size → small container images
    • faster startup times → instantaneous scale out
    • lower mem/cpu usage → higher deployment density

    View Slide

  13. dn.dev/learn
    ❤ Kubernetes Native
    • metrics and health
    • debugging and tracing
    • config maps and secrets

    View Slide

  14. dn.dev/learn
    ❤ Open Standards
    • CDI-based dependency injection
    • REST endpoints with JAX-RS
    • persistence with JPA annotations
    • JTA transaction boundaries
    … and many more!

    View Slide

  15. dn.dev/learn
    On the shoulders of Giants
    et al.

    View Slide

  16. dn.dev/learn
    How does Quarkus work?

    View Slide

  17. dn.dev/learn
    Traditional vs. Quarkus
    Build Time Runtime
    Runtime
    Build Time

    View Slide

  18. dn.dev/learn
    do more at build time
    work less at runtime

    View Slide

  19. dn.dev/learn
    2 Runtime Targets
    Build Time
    Native
    Executable
    JVM

    View Slide

  20. dn.dev/learn
    Live Coding

    View Slide

  21. dn.dev/learn
    https://code.quarkus.io

    View Slide

  22. dn.dev/learn
    Free e-book

    View Slide

  23. dn.dev/learn
    Start exploring in the OpenShift Sandbox.
    Learn containers, Kubernetes, and OpenShift in your browser.
    developers.redhat.com/developer-sandbox
    Try Red Hat's products and technologies
    without setup or configuration.

    View Slide

  24. dn.dev/learn
    Thank you!

    View Slide

  25. dn.dev/learn
    Join Red Hat Developer.
    Build here. Go anywhere.
    facebook.com/RedHatDeveloper
    youtube.com/RedHatDevelopers
    twitter.com/rhdevelopers
    linkedin.com/showcase/red-hat-developer

    View Slide

  26. View Slide