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 full-size 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 full-size slide

  3. dn.dev/learn
    Why Quarkus?

    View full-size 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 full-size slide

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

    View full-size slide

  6. dn.dev/learn
    What is Quarkus?

    View full-size slide

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

    View full-size slide

  8. dn.dev/learn
    ❤ Great Dev Experience

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size 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 full-size slide

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

    View full-size 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 full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  20. dn.dev/learn
    Live Coding

    View full-size slide

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

    View full-size slide

  22. dn.dev/learn
    Free e-book

    View full-size 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 full-size slide

  24. dn.dev/learn
    Thank you!

    View full-size 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 full-size slide