使用Payara Micro开发、配置和部署Java云本机应用程序。本书使用标准的微文件API揭开了Java云本机应用程序开发的神秘面纱,并介绍了Payara特有的功能,如自动集群和应用程序初始化性能改进。您将学习如何通过利用类数据共享提高启动性能,并通过标准开发工具(如Maven和Gradle)配置云原生应用程序。本书还阐明了如何使用微文件API开发云环境中必要的功能,如健康检查和请求跟踪。
本书首先展示了如何使用RESTful web服务开发微服务,然后介绍了如何使用MicroFile和REST客户端API创建微服务客户端。还包括通过雅加达上下文和依赖注入(CDI)进行的依赖注入。本文还介绍了各种应用程序配置方法,包括属性文件、环境变量和系统属性。您将学习配置容错和高可用性,生成系统和自定义应用程序指标,并生成运行状况检查,以自动改善应用程序的整体运行状况。您将知道如何使用OpenTracing跨服务边界跟踪请求流。通过生成文档,包括如何在代码更新时自动更新文档,您将能够轻松地进行未来的维护。此外,您还将学习如何保护云应用程序,以及如何自动对应用程序进行集群,并提高应用程序启动性能。
你将学到什么
使用标准Java API开发微服务
实现云功能,比如请求跟踪和健康检查
将应用程序部署为精简归档和uber归档
通过Maven和Gradle配置应用程序
为容量规划和问题的主动发现生成自定义指标
实施支持高可用性和容错性的功能
使用Jason Web令牌保护您的应用程序
利用Payara自己的云平台轻松部署
这本书是给谁的
希望开发云本地应用程序和微服务的Java开发人员,以及希望过渡到开发轻量级且易于部署的云本地应用程序的Java EE应用程序开发人员
Payara Micro Revealed: Cloud-Native Application Development with Java
Develop, configure, and deploy Java cloud-native applications using Payara Micro. This book demystifies Java cloud-native application development using standard Microprofile APIs and covers Payara-specific features such as automatic clustering and application initialization performance improvements. You will learn how to improve startup performance by taking advantage of class data sharing, and configure cloud-native applications via standard development tools such as Maven and Gradle. The book also clarifies how to develop functionality necessary in a cloud environment, such as health checks and request tracing, using MicroProfile APIs.
The book begins by showing how to develop microservices using RESTful web services, followed by how to create microservice clients using MicroProfile and the REST client API. Dependency Injection via Jakarta Context and Dependency Injection (CDI) is also covered. Various approaches to application configuration are covered as well, including property files, environment variables, and system properties. You will learn to configure fault tolerance and high availability, generate system and custom application metrics, and generate health checks to automatically improve overall application health. You will know how to trace the flow of a request across service boundaries with OpenTracing. You will be able to make future maintenance easily through generating documentation, including how to automatically update documentation as your code is updated. Additionally, you will learn how to secure cloud applications and to automatically cluster applications and improve application startup performance.
What You Will Learn
Develop microservices using standard Java APIs
Implement cloud functionality such as request tracing and health checks
Deploy applications as thin archives and as uber archives
Configure applications via Maven and Gradle
Generate custom metrics for capacity planning and proactive discovery of issues
Implement features in support of high availability and fault tolerance
Secure your applications with Jason Web Tokens
Take advantage of Payara’s own cloud platform for easy deployment
Who This Book Is For
Java developers who wish to develop cloud-native applications and microservices, and Java EE application developers who wish to transition to developing cloud-native applications that are lightweight and easily deployed
OR