6+ Hours of Video Instruction
The term “microservices” has gained significant traction over the last few years. Describing a specific style of distributed software architecture, microservices are small, independently deployable units that work together to form a complete system. Microservices live on the web, live in the cloud, and work with all manner of data (SQL, NoSQL, In-Memory). They are production-ready services driven by ever-changing demands and scale.
Java developers looking to adopt microservices need to consider the practical aspects of application development. How can services be developed quickly? How can a broad range of technologies be supported? How can a consistent programming model be kept? For many companies, the answer is Spring Boot and the wider Spring ecosystem.
In this video training, Josh Long and Phil Webb demonstrate how and why Spring and Spring Boot offer the best way to build modern microservice systems. They look at the technologies and use-cases common to cloud-native microservice style applications as part of a larger framework, and then specifically address microservice implementation patterns.
The source code repository for this LiveLesson is located at https://github.com/livelessons-spring/building-microservices.
About the Instructors
Josh Long is the Spring Developer Advocate at Pivotal. He is a lead author, or co-author, on five books on Spring for Apress and O'Reilly, a frequent speaker at conferences worldwide, a JavaOne rockstar, and also the instructor on the first two Spring LiveLessons videos. He is a contributor to various Spring projects (including Spring Boot) and an all-around Spring fan. When he's not distracting and annoying his co-presenter Mr. Webb (that poor soul!), Josh is always on the hunt for a good cup of coffee.
You can follow Josh on Twitter: @starbuxman
Phil Webb is the co-creator of Spring Boot and a core contributor to the Spring Framework. He has been working with open source for many years and regularly talks at conferences and Java User groups. When he’s not developing code, Phil is kept busy by his young son. Phil is fortunate enough to be employed by Pivotal to work full-time on Spring.
You can follow Phil on Twitter: @phillip_webb
What You Will Learn
Understand the patterns typical of modern application architectures
Understand how Spring Boot ties together various parts of the Spring platform to make getting results a snap, on par with the agility you might otherwise expect from a Node.js or Ruby on Rails
Learn how to build microservices with Spring Cloud
Who Should Take This Course
Existing and new Spring users
Java developers working with: SQL, NoSQL, mobile, web applications, highly concurrent service backends, etc.
Basic Java familiarity. The course uses Java 8, though Spring Boot and most Spring projects support Java 6.
Table of Contents
Lesson 1: “Bootstrapping” (Spring Boot 101) provides an introduction to Spring Boot, including how to “bootstrap” a new application, what features Spring Boot provides, and some peeking under the hood to show how things actually work.
Lesson 2: Using “Twelve-Factor App” Style Configuration covers some of the principals behind microservices, discusses “The Twelve Factor App” methodology, and looks at how you can externally configure your Spring Boot microservice applications.
Lesson 3: Reaching for The Clouds discusses what it means to be “cloud native,” and it shows you how easy it is to run Spring Boot microservices in the cloud. The lesson demonstrates how well Spring Boot works with Heroku, Cloud Foundry, and Docker. It also covers some other cloud services you might want to consume.
These first three lessons give you a solid foundation of how to use Spring Boot to write microservices, and what it takes to get them running in the cloud. The remaining lessons look at the technologies needed to write functioning applications.
Lesson 4: Working with Data shows you how to work with data. The lesson covers classic relational databases, newer NoSQL technologies like Redis and MongoDB, and talks about how these technologies fit with microservices.
Lesson 5: Giving Your Microservice a REST provides detailed information about REST architecture, which has become the backbone of microservice communication. The lesson covers not only basic REST principals, but also more advanced techniques such as HATEOAS.
Lesson 6: Dealing with Integration and Batch Processing expands upon microservice communication by covering integration patterns, messaging, and batch processing.
Lesson 7: Creating Operations-Friendly Microservices looks at what it means to actually run microservices. This lesson is all about “operations.” It discusses some of the great features built into Spring Boot, such as monitoring, metrics, and diagnostic tools.
Lesson 8: Choreographing Microservices moves beyond the basics of microservices and covers the real problems you need to solve when you start to coordinate disparate parts of your system. The lesson covers some microservice patterns and tools such as circuit breakers, edge servers, and service discovery that are critical in real systems.
Lesson 9: Developing Web Applications covers web application development. The lesson obviously can’t cover all web development techniques, but it does discuss what it means to consume microservices from a web application, along with the web development features that are built into Spring Boot.
Lesson 10: Securing Microservices with Spring Security provides compressive coverage of how to secure your microservices. It covers some advanced topics including: OAuth, “single sign on,” and SSL.
About LiveLessons Video Training
LiveLessons Video Training series publishes hundreds of hands-on, expert-led video tutorials covering a wide selection of technology topics designed to teach you the skills you need to succeed. This professional and personal technology video series features world-leading author instructors published by your trusted technology brands: Addison-Wesley, Cisco Press, IBM Press, Pearson IT Certification, Prentice Hall, Sams, and Que. Topics include: IT Certification, Programming, Web Development, Mobile Development, Home and Office Technologies, Business and Management, and more. View all LiveLessons on InformIT at: http://www.informit.com/livelessons
Table of Contents
Lesson 1: "Bootstrapping" (Spring Boot 101)
- Learning Objectives 00:00:45
- 1.1 Introduce Spring Boot 00:01:23
- 1.2 Write Groovy-based Spring CLI applications 00:03:36
- 1.3 Bootstrap with the Spring Initializr 00:05:38
- 1.4 Build with Maven 00:02:46
- 1.5 Build with Gradle 00:02:55
- 1.6 Work with starter POMs 00:00:41
- 1.7 Create runnable "fat" JARs 00:02:53
- 1.8 Understand auto-configuration 00:07:00
- Summary 00:00:28
Lesson 2: Using "Twelve-Factor App" Style Configuration
- Learning Objectives 00:00:44
- 2.1 Understand "Twelve-Factor App" configuration 00:00:55
- 2.2 Ask questions about an application's environment 00:01:39
- 2.3 Read external configuration 00:02:23
- 2.4 Map properties to POJOs 00:09:39
- 2.5 Take it easy with relaxed binding 00:01:16
- 2.6 Support multiple environments using Spring profiles 00:03:00
- 2.7 Centralize configuration with the journaled, secure Spring Cloud Configuration Server 00:02:59
- 2.8 Refresh configuration without restarting your application 00:06:51
- Summary 00:00:43
Lesson 3: Reaching for The Clouds
- Learning Objectives 00:00:38
- 3.1 Embrace "The Cloud" 00:00:17
- 3.2 Compare IaaS and PaaS 00:01:14
- 3.3 Deploy your apps to Heroku and Cloud Foundry 00:04:18
- 3.4 Containerize your applications with Docker 00:03:57
- 3.5 Consume services in "The Cloud" 00:06:21
- 3.6 Optimize for "The Cloud" using Spring Session and Spring Cloud AWS 00:09:05
- Summary 00:00:31
Lesson 4: Working with Data
- Learning Objectives 00:00:43
- 4.1 Contextualize your microservice data 00:01:15
- 4.2 Understand Spring Data 00:01:51
- 4.3 Work with relational databases 00:10:06
- 4.4 Evolve your database using Flyway 00:03:30
- 4.5 Use Redis distributed data structures 00:05:52
- 4.6 Store data with MongoDB 00:04:39
- 4.7 Search data using Elasticsearch 00:03:25
- 4.8 Expose Spring Data repositories over REST 00:02:19
- Summary 00:00:22
Lesson 5: Giving Your Microservice a REST
- Learning Objectives 00:00:41
- 5.1 Understand REST 00:02:30
- 5.2 Understand status codes 00:03:39
- 5.3 Understand content negotiation 00:00:59
- 5.4 Understand HTTP Clients 00:02:46
- 5.5 Use hypermedia 00:12:33
- 5.6 Handle errors 00:06:05
- 5.7 Version your API 00:01:20
- 5.8 Use Differential Synchronization and JSON PATCH 00:03:12
- Summary 00:00:45
- Lesson 6: Dealing with Integration and Batch Processing
Lesson 7: Creating Operations-Friendly Microservices
- Learning Objectives 00:00:47
- 7.1 Understand the implications of agile methodologies on operations 00:00:49
- 7.2 Gain insight via logging 00:05:05
- 7.3 Introduce the Spring Boot Actuator 00:07:35
- 7.4 Monitor microservices 00:09:29
- 7.5 Diagnose errors 00:03:55
- 7.6 Measure anything and everything with metrics 00:08:36
- 7.7 Extend the Spring Boot Actuator 00:03:18
- Summary 00:00:30
Lesson 8: Choreographing Microservices
- Learning Objectives 00:00:38
- 8.1 Understand deployment and scaling techniques 00:07:53
- 8.2 Discover and register services with Eureka and Consul 00:13:37
- 8.3 Route on the client with Ribbon 00:09:43
- 8.4 Prevent failure cascades using Hystrix 00:06:32
- 8.5 Isolate failures using circuit breakers 00:02:18
- 8.6 Connect web clients to backend services with Zuul 00:10:10
- Summary 00:00:35
Lesson 9: Developing Web Applications
- Learning Objectives 00:00:41
- 9.1 Understand web applications in the microservice world 00:01:06
- 9.2 Serve resources from a Spring Boot application 00:12:18
- 9.3 Use templating technologies such as Thymeleaf 00:04:33
- 9.4 Resolve and transform resources 00:08:30
- Summary 00:00:26
- Lesson 10: Securing Microservices with Spring Security
- Title: Building Microservices with Spring Boot LiveLessons (Video Training)
- Release date: May 2015
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780134192468