华为 姜宁 华为如何构建云原生Java应用

CodeWarrior

2019/07/08 发布于 编程 分类

GIAC2019 

文字内容
1. Java
3. • • • Apache • Apache Java
4. • Cloud Native • Pivotal • • CNCF • • • https://github.com/cncf/toc/blob/master/DEFINITION.md
5. • 12 • • • • • • API • https://12factor.net/ https://content.pivotal.io/ebooks/migrating-to-cloud-native-application-architectures
6. https://www.infoq.com/articles/microservices-post-kubernetes
7. • • • • • API
8. Java
9. Java • JVM • JVM — • JVM — • • • • JVM — Spring Boot 200MB 200MB 30~100MB
10. Java
11. Java javac .class Java (JVM)
12. Java .class JIT • • • • • • • JVM
13. Java .class C1 • • • C2 • • • • JVM https://www.ibm.com/developerworks/cn/java/j-lo-just-in-time/index.html
14. Java • C++ • .class C1 C2 Graal • • • • • • • JVM • Java • •
15. Graal Java AOT JDK VM JDK VM Java class JDK
16. “Hello World” C Java/JVM Java/SVM < 10ms 40 ms < 10ms 450KB 24 MB 850KB 100KB 140M 220KB
18. Quarkus • Supersonic Subatomic Java • Quarkus is a Kubernetes Native Java framework tailored for GraalVM and HotSpot, crafted from best-of-breed Java libraries and standards. • Quarkus K8s GraalVM HotSpot Java Java
19. Quarkus Image
20. Quarkus
21. Quarkus • Core • Web • Data • Messaging • Reactive • Cloud • Observability • Security • Integration • Serialization • Miscellaneous • Migration • Alternative Languages
22. Quarkus • IDE • JDK 1.8+, JAVA_HOME • GraalVM GRAALVM_HOME • C • Linux • macOS • GCC xcode-select —install Docker • docker native image
23. Quarkus • Hello World • GraalVM • • • • • Maven Gradle
24. Quarkus
25. Quarkus • • Web WebSocket • • dev • https://github.com/WillemJiang/smart-park-demo
26. Quarkus • Quarkus Github https://github.com/quarkusio • Quarkus https://quarkus.io/get-started/ • Quarkus https://quarkus.io/guides/ • Quarkus https://github.com/quarkusio/quarkusquickstarts
27. • • Java • GraalVM • Quarkus Java Java
28. msup