欢迎来到传世资源网!
加载中...
正在加载,请耐心等待...
本站为收藏、学习站,如有侵权,请联系管理员删除!

Packt.Hands

介绍 评论 失效链接反馈

Table of ContentsPreface 1Section 1: Section 1: Getting Started with QuarkusChapter 1: Introduction to Quarkus Core Concepts 8Technical requirements 9From the big data hype to Kubernetes 9The Kubernetes architecture in a nutshell 10Benefits of using Kubernetes 12From Java EE to MicroProfile 12The Twelve-Factor App methodology 15The MicroProfile initiative 16Quarkus – a Kubernetes-native Java framework 18Native code execution 18Container first 19Unifying the imperative and Reactive Programming models 20Coding that sparks joy 20Best-of-breed Java libraries and standards 21Quarkus architecture 21Getting started with GraalVM 23Installing GraalVM 24Running a Java application with GraalVM 26Building native images 27Installing a development environment 28A brief overview of IntelliJ IDEA 29Installing IntelliJ Plugin for Quarkus 30Summary 32Chapter 2: Developing Your First Application with Quarkus 33Technical requirements 33Getting started with the Quarkus Maven plugin 34Launching the Quarkus Maven plugin 35Running the application 40Using the Maven plugin to generate a Gradle project 41Kick-starting applications using the Quarkus online application 42Testing live reload from your IDE 44Debugging applications 46Testing Quarkus applications 49Choosing a different port for testing 52Turning your application into a native executable 53Table of Contents[ ii ]Executing integration tests against the native executable 55Summary 57Chapter 3: Creating a Container Image of Your Application 58Technical requirements 58Setting up Docker 59Running Quarkus applications in a container 61Running the native executable process in a container 66Deploying Quarkus applications on a Kubernetes-native platform 68Installing Minishift 70Building and deploying a Quarkus application on OKD 73Scaling our Quarkus service 80Summary 83Section 2: Section 2: Building Applications with QuarkusChapter 4: Adding Web Interfaces to Quarkus Services 85Technical requirements 85Adding web content to Quarkus applications 86Building a CRUD application 86Adding a UI to our customer service 90Testing our application 94Running the example 96Running our application on Minishift 97Configuring Cross-Origin Resource Sharing in Quarkus 99Adding Enterprise web components 100Introducing WebSockets 101Building a project that uses Websockets 102Creating a WebSocket client project 104Adding an AJAX handler 107Summary 109Chapter 5: Managing Data Persistence with Quarkus 110Technical requirements 110Adding an ORM layer to our applications 111Defining the entity layer 112Coding the repository classes 115Defining REST endpoints 118Connecting to the database 119Coding a test class 120Adding a web interface to our application 122Running the application 126Caching entity data 127Taking an application to the cloud 129Making data persistence easier using Panache API 132Summary 136Table of Contents[ iii ]Chapter 6: Building Applications Using the MicroProfile API 137Technical requirements 137Getting started with the MicroProfile API 138Getting started with MicroProfile projects 139The Eclipse MicroProfile Health Check 140Using liveness and readiness checks 143Letting OpenShift manage unhealthy services 145The Eclipse MicroProfile Fault Tolerance API 151Using Timeout, Fallback, and Retry to create resilient services 152Applying a retry policy to your failures 153Circuit Breaker 154Using asynchronous and bulkhead policies 155The Eclipse MicroProfile Metrics API 156Configuring OpenAPI and the Swagger UI 158Customizing the output of OpenAPI 162The Eclipse MicroProfile OpenTracing API 164The Eclipse MicroProfile REST Client API 167Summary 172Chapter 7: Securing Applications 173Technical requirements 173Securing our customer service 174Securing Quarkus services with Elytron 175Creating a test class that performs basic authentication 178Securing Quarkus services with Keycloak 180Adding a Keycloak extension to our service 181Setting up Keycloak 181Defining the security realm 182Configuring Quarkus for Keycloak 188Coding the test class 189Gathering principal and role information at runtime 193Securing Quarkus services with MicroProfile JWT 194Configuring our service to use JWT 197Running our test 198Injecting JWT claims and token information 199Using HTTPS with Quarkus 200Summary 201Section 3: Section 3: Advanced Development TacticsChapter 8: Advanced Application Development 203Technical requirements 203Using advanced configuration options 203Multiple configuration sources 205Configuring custom configuration sources 205Table of Contents[ iv ]Using converters in your configuration 208Adding custom converters 211Testing advanced configuration options 212Configuration profiles 213Activating profiles 214Automatic profile selection 215Controlling the application life cycle 216Activating a database test resource 218Firing events with the Quarkus scheduler 219Using the cron scheduler format 221Firing one-time events 221Summary 222Chapter 9: Unifying Imperative and Reactive with Vert.x 223Technical requirements 223Demystifying Reactive Programming and Vert.x 224Vert.x API models in Quarkus 226Managing the Vert.x core API 227Managing Vert.x API for RxJava 233Using RxJava with Quarkus 235Decoupling events with Vert.x axle libraries 239Adding an EventBus layer to Quarkus applications 240Rolling up the application 242Streaming SSE with Vert.x 242Canceling events 245Managing the Reactive SQL Client 246Configuring your application to use the PostgreSQL reactive client 246Running the example 249Summary 251Chapter 10: Reactive Messaging with Quarkus 252Technical requirements 252Getting started with Reactive Messaging 253Streaming messages with Apache Kafka 255Composing our stock trading application 255Coding bean classes 257Streaming messages to Kafka in the cloud 264Installing Kafka on OpenShift 264Shaping up our project for native cloud execution 269Streaming messages with AMQP 272Configuring the AMQP broker 273Streaming messages to AMQ in the cloud 276Summary 280Other Books You May Enjoy 281Index 284

下载声明:

本站资源均有第三方用户自行上传分享推荐,非本站自制,仅供玩家做交流学习之用!切勿用于商业用途!游戏作品版权归原作者享有,如有版权问题,请附带版权证明至邮件,本平台将应您的要求删除。
相关推荐:

评论

发表评论必须先登陆, 您可以 登陆 或者 注册新账号 !


在线咨询: 问题反馈
客服QQ:174666394

有问题请留言,看到后及时答复