下载  >  开发技术  >  Java  > Mastering Microservices with Java.pdf

Mastering Microservices with Java.pdf 评分

Mastering Microservices with Java.pdf Mastering Microservices with Java.pdf
Mastering microservices with Java Copyright C 2016 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, cither express or implied Cither the author, nor Packt Publishing and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals However, Packt Publishing cannot guarantee the accuracy of this information First published: June 2016 Production reference: 1240616 Published by packt Publishing Ltd Livery place 35 Livery Street Birmingham b3 2PB, UK ISBN978-1-78528-517-2 www.packtpub.com Credits Author Copy Editor Sourabh sharma Safis Editing Reviewer Project Coordinator Guido grazioli Ritika manoi Commissioning Editor Proofreader Veena Pagare Safis Editing Acquisition Editor Indexer Indrajit Das Rekha nair Content Development Editor Production coordinator Arun nadar Manu Joseph Technical editor Cover Work Tanmayee Patil Manu Joseph About the author Sourabh sharma has more than a decade of experience of product/app development. His expertise lies in developing, deploying, and testing N-tier web applications he loves to troubleshoot complex problems and look for the best solutions In his career, he has successfully developed and delivered various standalone and cloud apps to happy Fortune 500 customers Sourabh has also initiated and developed a microservices-based product for his US-based top enterprise product company. I le started writing Java programs in his college days, in the late 90s, and he still loves it About the reviewer Guido grazioli has worked as an application developer, software architect, and systems integrator for a wide variety of business applications, crossing several domains. He is a hybrid software engineer, with deep knowledge of the java platform and tooling, as well as Linux system administration. Hle is particularly interested in SOAs, ElPs, Continuous Integration and Delivery, and service orchestration in the cloud www.Packtpub.com eBooks discount offers, and more Did you know that Packt offers e Book versions of every book published, with PDF andepuBfilesavailableYoucanupgradetotheeboOkversionatwww.packtpub.Com and as a print book customer you are entitled to a discount on the e Book copy. Get in touch with us at customercare@packtpub com for more details Atwww.packtPubcomyoucanalsoreadacollectionoffreetechnicalarticlessign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and ebook PACKTLIB https://www2.packtpub.ccm/books/subscription/packtlib Do you need instant solutions to your IT questions? PacktLib is Packt's online dig book library. Here, you can search, access, and read Packt's entire library of books Why subscribe? Fully searchable across every book published by Packt Copy and paste, print, and bookmark content On demand and accessible via a web browser Table of contents Preface Chapter 1: A Solution Approach Evolution of sErvices Monolithic architecture overview Limitation of monolithic architecture versus its solution ith sErvices One dimension scalability Release rollback in case of failure Problems in adopting new technologies 23367789 Alignment with Agile practices Ease of development-could be done better Microservices build pipeline 10 Deployment using a container such as Docker Containers Docker's architecture 13 Docker container Depl 14 mmary Chapter 2: Setting Up the Development Environment 7 Spring boot configuration Spring Boot overview 18 Adding Spring Boot to the rest sample 19 Adding a Jetty-embedded server 21 Sample rEst program 22 Writing the Rest controller class 24 @Restcontrolle 24 @ RequestMapping @ RequestParam aPathVariable 26 Table of contents Making a sample REST app executable 28 Setting up the application build 29 Running the Maven too 29 Executing with the Java command 30 REST API testing using the Postman Chrome extension 30 Some more positive test scenarios 34 Negative test scenarios 35 NetBeans IDE installation and setup 37 References 42 Summary 42 Chapter 3: Domain-Driven Design 43 Domain-driven design fundamentals 44 Building blocks 45 Ubiquitous language 45 Multilayered architecture 45 Presentation layer 46 Application layer Domain layer Infrastructure layer 47 Artifacts of domain-driven design 47 Entities 47 Value objects Services 50 Aggregates Repository Factor 5555 Modules 346 Strategic design and principles 56 Bounded context 57 Continuous integration 57 Context map 58 Shared kerne 60 Customer-supplier Conformist 61 Anticorruption layer 61 Separate ways 61 Open host service Distillation Sample domain service 62 Entity implementation 63 Repository implementation 65 Service implementation 67 Summary 69 Table of Contents Chapter 4: Implementing a Microservice OTRS overview 72 Developing and implementing sErvices Restaurant Service 74 Controller class Service classes 79 Repository classes 81 Entity classes 83 Booking and user services 86 Registration and Discovery service(Eureka service) 86 Execution 88 Testing 88 References 92 Summary 92 Chapter 5: Deployment and Testing 93 An overview of microservice architecture using Netflix Oss 93 Load balancing 95 Client-side load balancing 95 Server-side load balancing 98 Circuit breaker and monitoring 102 Using hystrix' s fallback methods 102 Monitoring 104 Setting up the Hystrix dashboard 105 Setting up Turbine 107 Microservice deployment using containers 109 Installation and configuration 109 Docker machine with 4 GB Building Docker images with Maven 109 Running Docker using Maven Integration testing with Docker 114 Pushing the image to a registry 116 Managing Docker containers 117 Re eferences 119 Summary Chapter 6: Securing Microservices 121 Enabling Secure Socket Layer 121 Authentication and authorization 125 OAuth 2.0 26 Usage of oauth 126 OAuth 2.0 specification -concise details 126 OAuth 2.0 roles 128 OAuth 2.0 client registration 129 l

...展开详情
所需积分/C币:9 上传时间:2018-02-03 资源大小:7.66MB
举报 举报 收藏 收藏
分享 分享
Mastering Microservices with Java 9 Second Edition.pdf

Mastering Microservices with Java 9 Second Edition.pdf

立即下载
Mastering Go

Mastering Go Mastering Go Mastering Go Mastering Go

立即下载
Mastering Immutable

Mastering Immutable PDF Mastering Immutable epub Mastering Immutable azw3 示例源码

立即下载
Mastering Algorithms with C (Mastering)

Mastering+Algorithms+with+C+(Mastering)

立即下载
Mastering SaltStack

Mastering SaltStack

立即下载
Mastering Emacs

Mastering Emacs

立即下载
Mastering WordPress

Mastering WordPress

立即下载
Mastering Ethereum

Mastering Ethereum

立即下载
Mastering Python

Mastering Python 2016

立即下载
Mastering Cryengine

Mastering CryENGINE 2014

立即下载
perl mastering

perl tk mastering

立即下载
Mastering Ceph

Mastering Ceph 电子版,英文版本 Mastering Ceph 电子版,英文版本

立即下载
Mastering Bitcoin

Mastering Bitcoin second edition

立即下载
Mastering Dojo

Mastering Dojo - Pragmatic.pdf

立即下载
Mastering OpenLDAP

英文书《Mastering OpenLDAP》

立即下载
Mastering Saltstack

Mastering Saltstack

立即下载
Mastering SoapUI

Mastering SoapUI

立即下载
Mastering Metasploit

Mastering Metasploit Packt 原版电子书 英文

立即下载
mastering dojo

mastering dojo电子书 绝对完整545页

立即下载
ModbusTCP/RTU网关设计

基于UIP协议栈,实现MODBUS联网,可参考本文档资料,有MODBUS协议介绍

立即下载