ebook img

Spring Microservices in Action PDF

386 Pages·2017·19.55 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Spring Microservices in Action

John Carnell M A N N I N G Spring Microservices in Action Licensed to <null> Licensed to <null> Spring Microservices in Action JOHN CARNELL MANNING SHELTER ISLAND Licensed to <null> For online information and ordering of this and other Manning books, please visit www.manning.com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact Special Sales Department Manning Publications Co. 20 Baldwin Road PO Box 761 Shelter Island, NY 11964 Email: [email protected] ©2017 by Manning Publications Co. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps. Recognizing the importance of preserving what has been written, it is Manning’s policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15 percent recycled and processed without the use of elemental chlorine. Manning Publications Co. Acquisition editor: Greg Wild 20 Baldwin Road Development editor: Marina Michaels PO Box 761 Technical development editor: Raphael Villela Shelter Island, NY 11964 Copyeditor: Katie Petito Proofreader: Melody Dolab Technical proofreader: Joshua White Review editor: Aleksandar Dragosavljevic Typesetter: Marija Tudor Cover designer: Marija Tudor ISBN 9781617293986 Printed in the United States of America 1 2 3 4 5 6 7 8 9 10 – EBM – 22 21 20 19 18 17 Licensed to <null> To my brother Jason, who even in his darkest moments showed me the true meaning of strength and dignity. You are a role model as a brother, husband, and father. Licensed to <null> vi Licensed to <null> brief contents 1 ■ Welcome to the cloud, Spring 1 2 ■ Building microservices with Spring Boot 35 3 ■ Controlling your configuration with Spring Cloud configuration server 64 4 ■ On service discovery 96 5 ■ When bad things happen: client resiliency patterns with Spring Cloud and Netflix Hystrix 119 6 ■ Service routing with Spring Cloud and Zuul 153 7 ■ Securing your microservices 192 8 ■ Event-driven architecture with Spring Cloud Stream 228 9 ■ Distributed tracing with Spring Cloud Sleuth and Zipkin 259 10 ■ Deploying your microservices 288 vii Licensed to <null> viii BRIEF CONTENTS Licensed to <null> contents preface xv acknowledgments xvii about this book xix about the author xxii about the cover illustration xxiii 1 Welcome to the cloud, Spring 1 1.1 What’s a microservice? 2 1.2 What is Spring and why is it relevant to microservices? 5 1.3 What you’ll learn in this book 6 1.4 Why is this book relevant to you? 7 1.5 Building a microservice with Spring Boot 8 1.6 Why change the way we build applications? 12 1.7 What exactly is the cloud? 13 1.8 Why the cloud and microservices? 15 1.9 Microservices are more than writing the code 17 Core microservice development pattern 19 ■ Microservice routing patterns 20 ■ Microservice client resiliency patterns 21 Microservice security patterns 23 ■ Microservice logging and tracing patterns 24 ■ Microservice build/deployment patterns 25 1.10 Using Spring Cloud in building your microservices 26 Spring Boot 28 ■ Spring Cloud Config 28 ■ Spring Cloud service discovery 28 ■ Spring Cloud/Netflix Hystrix and ix Licensed to <null>

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.