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

Quarkus でJava モダナイゼーション

norikokt
February 25, 2020

Quarkus でJava モダナイゼーション

初めてQuarkusを触る方向けの超導入編です。

norikokt

February 25, 2020
Tweet

More Decks by norikokt

Other Decks in Education

Transcript

  1. <iframe width="536" height="302" src="https://www.youtube.com/embed/0CUlbqpO4vk" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"

    allowfullscreen></iframe> 2.Quarkusのコンセプト Group Name / DOC ID / Month XX, 2018 / © 2018 IBM Corporation 4
  2. 2.Quarkusのコンセプト Introducing Quarkus: a next-generation Kubernetes native Java framework The

    goal of Quarkus is to make Java a leading platform in Kubernetes and serverless environments while offering developers a unified reactive and imperative programming model to optimally address a wider range of distributed application architectures. Red Hat Developer Blogより抜粋: https://developers.redhat.com/blog/2019/03/07/quarkus-next-generation-kubernetes-native-java-framework/ Group Name / DOC ID / Month XX, 2018 / © 2018 IBM Corporation 6
  3. 2.Quarkusのコンセプト Group Name / DOC ID / Month XX, 2018

    / © 2018 IBM Corporation 7 Container First Quarkus delivers significant runtime efficiencies (based on Red Hat testing), such as •Fast Startup (tens of milliseconds) allows automatic scaling up and down of microservices on containers and Kubernetes as well as FaaS on-the-spot execution •Low memory utilization helps optimize container density in microservices architecture deployments requiring multiple containers •Smaller application and container image footprint
  4. 2.Quarkusのコンセプト Group Name / DOC ID / Month XX, 2018

    / © 2018 IBM Corporation 8 Unifies Imperative and Reactive
  5. 2.Quarkusのコンセプト Group Name / DOC ID / Month XX, 2018

    / © 2018 IBM Corporation 9 Developer Joy A cohesive platform for optimized developer joy:
  6. <iframe width="536" height="302" src="https://www.youtube.com/embed/0CUlbqpO4vk" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"

    allowfullscreen></iframe> 2.Quarkusのコンセプト Group Name / DOC ID / Month XX, 2018 / © 2018 IBM Corporation 12 https://youtu.be/0CUlbqpO4vk
  7. Group Name / DOC ID / Month XX, 2018 /

    © 2018 IBM Corporation 14
  8. 3.ダウンロードサイト・デモ デモ環境 macOS Catalina(10.15.3) Java jdk 8.x Maven 3.5.x 読み︓めいべん

    GraalVM 読み︓ぐらーるばーちゃるましん Group Name / DOC ID / Month XX, 2018 / © 2018 IBM Corporation 16
  9. 5.本⽇の課題 環境確認 → Projectチェックアウト → 実⾏ → 結果の確認 Group Name

    / DOC ID / Month XX, 2018 / © 2018 IBM Corporation 18 $ java –version $ mvn -version
  10. 5.本⽇の課題 環境確認 → Projectチェックアウト → 実⾏ → 結果の確認 ¥マーク表⽰はペースト時にバックスラッシュになります Group

    Name / DOC ID / Month XX, 2018 / © 2018 IBM Corporation 19 $ mvn io.quarkus:quarkus-maven-plugin:0.15.0:create ¥ -DprojectGroupId=org.acme ¥ -DprojectArtifactId=getting-started ¥ -DclassName="org.acme.quickstart.GreetingResource" ¥ -Dpath="/hello"
  11. 5.本⽇の課題 環境確認 → Projectチェックアウト → 実⾏ → 結果の確認 Group Name

    / DOC ID / Month XX, 2018 / © 2018 IBM Corporation 20 $ cd getting-started $ ls -la
  12. 5.本⽇の課題 環境確認 → Projectチェックアウト → 実⾏ → 結果の確認 Group Name

    / DOC ID / Month XX, 2018 / © 2018 IBM Corporation 22 $ ./mvnw compile quarkus:dev: