Quarkus in 5 minutes

Quarkus in 5 minutes

Debf5c5633f5a9713351dfff1d501031?s=128

Nobuhiro Sue

May 28, 2019
Tweet

Transcript

  1. 2019年 5⽉ 28⽇ 須江 信洋 (@nobusue) 5分で理解するQuarkus 1 Red Hat

    Tech Night 2019.05
  2. 2 https://quarkus.io/

  3. Quarks is 何? 3 Java Code Build (optimized / live

    reload) Native Build Java Binary Native Binary JavaVM (Containerized) For Development For Production • JVM-less • 100x boot speed • 1/10 memory Quarkus入門 http://n-agetsuma.hatenablog.com/entry/2019/05/22/202713 =>おそらく2019/5/28時点で最も詳しい解説
  4. Developer Joy: Live Reload by Dev Mode 4 2019-05-27 18:27:16,898

    INFO [io.qua.dev] (executor-thread-1) Changed source files detected, recompiling [/Users/nobusue/redhat/quarkus-tutorial/work/my-quarkus- project/src/main/java/org/acme/quarkus/sample/HelloResource.java] 2019-05-27 18:27:17,861 INFO [io.quarkus] (executor-thread-1) Quarkus stopped in 0.004s 2019-05-27 18:27:17,862 INFO [io.qua.dep.QuarkusAugmentor] (executor-thread-1) Beginning quarkus augmentation 2019-05-27 18:27:18,193 INFO [io.qua.dep.QuarkusAugmentor] (executor-thread-1) Quarkus augmentation completed in 331ms 2019-05-27 18:27:18,240 INFO [io.quarkus] (executor-thread-1) Quarkus 0.15.0 started in 0.378s. Listening on: http://[::]:8080 2019-05-27 18:27:18,240 INFO [io.quarkus] (executor-thread-1) Installed features: [cdi, resteasy] 2019-05-27 18:27:18,241 INFO [io.qua.dev] (executor-thread-1) Hot replace total time: 1.344s
  5. 5 DEMO

  6. 注意点 6 1) なんでもかんでもQuarkusでビルドできるわけではない =>Extensionでの対応が必要 2) ネィティブビルドにはGraalVMが必要 =>Quarkus0.15.0 の場合、GraalVM 1.0RC16が必要

    3) JDKのバージョンに注意 =>JDK8以上が必要だが、2019/5/28現在はJDK12では動かない
  7. Quarkusに⼊⾨するには 7 1) なにはともあれGetting Started https://quarkus.io/get-started/ 2) Extensionを使ってみよう! https://quarkus.io/extensions/ 3)

    気になるExtensionのソースを読んでみよう! https://github.com/quarkusio/quarkus/tree/master/extensions 4) Extensionを作ってみよう! https://quarkus.io/guides/extension-authors-guide
  8. Quarkus Tutorial by Kamesh Sampath & Edson Yanaga 8 https://github.com/redhat-developer-demos/quarkus-tutorial

    We need feedback!!
  9. linkedin.com/company/red-hat youtube.com/user/RedHatVideos facebook.com/redhatinc twitter.com/RedHat Red Hat is the world’s leading

    provider of enterprise open source software solutions. Award-winning support, training, and consulting services make Red Hat a trusted adviser to the Fortune 500. Thank you Red Hat Tech Night 2019.05