• Books
  • Cloud Native Java

Cloud Native Java, by Josh Long & Kenny Bastani, translated by Zhang Ruofei and Song Jingchao.


    July 1, 2018





This is the third Cloud Native technical book I translated. The first two are:

Jimmy Song with Josh Long

Photo taken on November 3, 2018, Beijing

Book Introduction

What’s the difference between a traditional business and those like Amazon, Netflix and Etsy? These companies have well-established cloud-native development methods that allow them to stay ahead of their competitors. This practical guide shows Java / JVM developers how to build software faster and better with Spring Boot, Spring Cloud, and Cloud Foundry.

Many organizations have set foot in the areas of cloud computing, test-driven development, microservices, and continuous integration and delivery. The authors of this book, Josh Long and Kenny Bastani, will take you deeper into these tools and methods and help you transform traditional applications into true cloud native applications.

This book contains the following four sections:

  • Basics : Understand the motivations behind cloud-native thinking; configure and test Spring Boot applications; migrate your traditional applications to the cloud
  • Microservices : use HTTP to build HTTP and RESTful services; route requests in distributed systems; establish edge services closer to data
  • Data integration : Use Spring Data to manage data and integrate distributed services with the event-driven, message-centric architecture supported by Spring
  • Production : Make your system observable; use service agents to connect to stateful services; understand the important ideas behind continuous delivery

If you are building a cloud native application, this book will be the basic guide to using the Java ecosystem. This book contains everything-the key tasks of building resilient services, managing data flow (through REST and asynchronous events), testing, deployment, and observability.

——Daniel Bryant , software developer and CTO of SpectoLabs

I predict that whether it is a cloud-native journey or a cloud-native goal, everyone involved will benefit from this cloud-native Java insight and experience.

-Dr. Dava Syer , contributor to Spring Framework, contributor and co-founder of Spring Boot and Spring Cloud

author information

Josh Long is a Spring evangelist, editor of InfoQ.com’s Java queue, and lead author of several books including Spring Recipes Second Edition (published by Apress). Josh has spoken at many international industry conferences, including TheServiceSide Java Symposium, SpringOne, OSCON, JavaZone, Devoxx, Java2Days, and more. When he was not writing SpringSource code, he was either in the Java user group or drinking coffee in a coffee shop. Josh likes solutions that drive technology forward. His interests include scalability, BPM, grid computing, mobile computing, and so-called “smart” systems. You can browse his blog at http://blog.springsource.org or http://joshlong.com .

Kenny Bastani is a Spring evangelist at Pivotal. As an open source contributor and blogger, Kenny focuses on graph databases, microservices, and more, and enjoys attracting a group of passionate software developers. Kenny is also a frequent guest at industry conferences such as OSCON, SpringOne Platform, and GOTO. He maintains a personal blog on software architecture and provides tutorials and open source reference examples for building event-driven microservices and serverless architectures.

table of Contents

Preface (James Watters) xvii

Prologue (Rod Johnson) xix

Preface xxi

Part I Basic Knowledge

  • Chapter 1 Cloud Native Applications 3
  • Chapter 2. Boot Camp: Spring Boot and Cloud Foundry 21
  • Chapter 3 Configurations in a Twelve-Factor Program Style 67
  • Chapter 4 Testing 85
  • Chapter 5 Migrating Legacy Applications 115

Part II Web Services

  • Chapter 6 The REST API 137
  • Chapter 7 Routing 179
  • Chapter 8 Edge Services 197

Part III Data Integration

  • Chapter 9 Data Management
  • Chapter 10 The Message System 303
  • Chapter 11 Batches and Tasks 325
  • Chapter 12 Data Integration

Part IV Production

  • Chapter 13 Observable Systems 411
  • Chapter 14 Service Agents
  • Chapter 15 Continuous Delivery 497

Appendix to Part V

Appendix A Using Spring Boot 527 in Java EE

Related Book

Cloud Native Infrastructure
  • October 21, 2019
  • Ebook

Cloud Native Infrastructure

Cloud Native theory

Docker Handbook
  • October 10, 2017
  • Ebook

Docker Handbook

Based on the practices of …

Serverless Handbook
  • October 21, 2019
  • Ebook

Serverless Handbook

Serverless architecture manual