وبلاگ بلیان

Spring Boot Messaging : Messaging APIs for Enterprise and Integration Solutions

جلد کتاب Spring Boot Messaging : Messaging APIs for Enterprise and Integration Solutions

معرفی کتاب «Spring Boot Messaging : Messaging APIs for Enterprise and Integration Solutions» نوشتهٔ Felipe Gutierrez (auth.)، منتشرشده توسط نشر Apress : Imprint: Apress در سال 2017. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است.

Build messaging applications using the power of Spring Boot; use Spring application events over the Web; use WebSocket, SockJS, and STOMP messaging with Spring MVC; and use Spring JMS, Redis Pub/Sub and Spring AMQP for reliable messaging solutions. This book covers all the Spring Messaging APIs using Spring Boot. Written by a Pivotal engineer, __Spring Boot Messaging__ is an authoritative guide to the many messaging APIs and how to use these for creating enterprise and integration solutions. You will learn and integrate these messaging APIs with more complex enterprise and cloud applications: for example, you will see how to use Spring Cloud Stream for creating message-driven and cloud native microservices. In addition, you’ll discover the new Spring Integration DSL and use it with Spring Cloud Stream to build integration solutions using every enterprise integration pattern. Finally, you’ll see Spring Reactor and Spring Cloud to take your application to the next level.< After reading this book, you will come away with a case study application walk-through and will be able to use it as a template for building your own Spring messaging applications or messaging features within your enterprise or cloud application. **What You'll Learn** * Use the main Spring messaging APIs with Spring Framework 5 * Build messaging applications over the Web * Use WebSocket, SockJS, and STOMP messaging * Integrate Spring JMS and Spring AMQP into your applications * Work with Spring Cloud Stream and microservices **Who This Book Is For** Enterprise Java developers who have at least some previous experience with the Spring Framework and/or the Spring platform. Contents at a Glance 5 Contents 6 About the Author 11 About the Technical Reviewer 12 Acknowledgments 13 Chapter 1: Messaging 14 Messaging 14 Messaging Use Cases 14 Messaging Models and Messaging Patterns 16 Point-to-Point 16 Publish-Subscribe 16 Messaging Patterns 17 Messaging with Spring Framework 18 Summary 18 Chapter 2: Spring Boot 19 What Is Spring Boot? 19 Spring Boot’s Features 19 Restful API with Spring Boot 20 The rest-api-demo Project 20 The pom.xml File 22 The Rate.java Class 23 The RateRepository.java Class 24 The CurrencyController.java Class 25 The RestApiDemoApplication.java Class 25 Other Files... 26 Running the Spring Boot Currency Web App 27 Deploying the Spring Boot Currency Web App 27 More About Spring Boot 27 Summary 28 Chapter 3: Application Events 29 The Observer Pattern 29 The Spring ApplicationEvent 30 Spring ApplicationListener 31 Rest API Currency Project 32 Custom Events 35 Using Event Listeners with Annotations 39 @EventListener 39 @TransactionalEventListener 41 Summary 42 Chapter 4: JMS with Spring Boot 43 JMS 43 JMS with Java 44 JMS with Spring Boot 48 Producer 48 Consumer 50 Consumer with Annotations 54 Currency Project 55 Using a Remote Apache ActiveMQ Broker 58 Reply-To 63 Topics 66 Currency Project 69 Summary 69 Chapter 5: AMQP with Spring Boot 70 The AMQP Model 70 Exchanges, Bindings, and Queues 71 RabbitMQ 73 RabbitMQ with Spring Boot 73 Producer 74 Consumer 78 Consumer Using Annotations 80 RPC 81 Reply Management 86 Flow Control 87 Blocking/Unblocking Events 87 More Features 89 Currency Project 91 Summary 91 Chapter 6: Messaging with Redis 92 Redis as a Message Broker 92 Publish/Subscribe Messaging with Redis 94 Subscriber 94 Publisher 97 JSON Serialization 99 The Currency Project 103 Summary 103 Chapter 7: Web Messaging 104 WebSockets 104 Using WebSockets with Spring 105 Low-Level WebSockets 105 Using SockJS and STOMP 112 Chat Room Application 112 Using RabbitMQ as a STOMP Broker Relay 119 Currency Project 120 Summary 121 Chapter 8: Messaging with Spring Integration 122 Spring Integration Primer 123 Programming Spring Integration 124 A Simple Spring Integration Example 125 Using DSL 125 Using XML 127 Using Annotations 129 Using Java Config 132 File Integration Example 132 File and JDBC Integration Example 135 AMQP Integration Example 139 AMQP Producer 141 AMQP Consumer 142 Currency Exchange Project 142 Summary 142 Chapter 9: Messaging with Spring Cloud Stream 143 Spring Cloud 143 Spring Cloud Stream 144 Spring Cloud Stream Concepts 145 Spring Cloud Stream Programming 146 cloud-stream-demo 149 Source 149 Processor 156 Sink 163 Microservices 164 Example Features 164 cloud-stream-source-demo 165 cloud-stream-processor-demo 166 cloud-stream-sink-demo 167 Spring Cloud Stream App Starters 170 source:http 170 sink:log 170 Currency Project 172 What’s Next? 172 Summary 172 Chapter 10: Reactive Messaging 173 Reactive Programming 173 RxJava 174 The rxjava-demo Project 174 Reactor 180 The reactor-demo Project 180 Spring 5: WebFlux Framework 183 Programming Models 183 Annotation-Based Programming Model 183 Functional-Based Programming Model 185 RouterFunctions, HandlerFunctions, and Server 185 Summary 188 Chapter 11: Microservices 189 What Microservices Are 189 The Twelve Factor Apps 190 Spring Cloud Services 192 Spring Cloud Config Server 192 Cloud Config Server 192 Cloud Config Client 193 Service Registry 194 Service Registry: Eureka Server 195 Registering a Service Application with the Eureka Server 197 Accessing the Service Through a Client Application 199 Circuit Breaker 200 About Reactive Programming 202 Summary 202 Index 203 Build messaging applications using the power of Spring Boot; use Spring application events over the Web; use WebSocket, SockJS, and STOMP messaging with Spring MVC; and use Spring JMS, Redis Pub/Sub and Spring AMQP for reliable messaging solutions. This book covers all the Spring Messaging APIs using Spring Boot. Written by a Pivotal engineer, Spring Boot Messaging is an authoritative guide to the many messaging APIs and how to use these for creating enterprise and integration solutions. You will learn and integrate these messaging APIs with more complex enterprise and cloud applications: for example, you will see how to use Spring Cloud Stream for creating message-driven and cloud native microservices. In addition, you'll discover the new Spring Integration DSL and use it with Spring Cloud Stream to build integration solutions using every enterprise integration pattern. Finally, you'll see Spring Reactor and Spring Cloud to take your application to the next level. After reading this book, you will come away with a case study application walk-through and will be able to use it as a template for building your own Spring messaging applications or messaging features within your enterprise or cloud application. You will: Use the main Spring messaging APIs with Spring Framework 5 Build messaging applications over the Web Use WebSocket, SockJS, and STOMP messaging Integrate Spring JMS and Spring AMQP into your applications Work with Spring Cloud Stream and microservices Front Matter....Pages i-xvii Messaging....Pages 1-5 Spring Boot....Pages 7-16 Application Events....Pages 17-30 JMS with Spring Boot....Pages 31-57 AMQP with Spring Boot....Pages 59-80 Messaging with Redis....Pages 81-92 Web Messaging....Pages 93-110 Messaging with Spring Integration....Pages 111-131 Messaging with Spring Cloud Stream....Pages 133-162 Reactive Messaging....Pages 163-178 Microservices....Pages 179-192 Back Matter....Pages 193-196
دانلود کتاب Spring Boot Messaging : Messaging APIs for Enterprise and Integration Solutions