Spring 5.0 By Example

Discover the real power of Spring Framework 5.0 and learn to create powerful applications in its newest version
Preview in Mapt

Spring 5.0 By Example

Claudio Eduardo de Oliveira
New Release!

2 customer reviews
Discover the real power of Spring Framework 5.0 and learn to create powerful applications in its newest version
Mapt Subscription
FREE
$29.99/m after trial
eBook
$18.00
RRP $35.99
Save 49%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$18.00
$44.99
$29.99 p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Spring 5.0 By Example Book Cover
Spring 5.0 By Example
$ 35.99
$ 18.00
Pentaho 5.0 Reporting by Example: Beginner’s Guide Book Cover
Pentaho 5.0 Reporting by Example: Beginner’s Guide
$ 29.99
$ 15.00
Buy 2 for $32.50
Save $33.48
Add to Cart

Book Details

ISBN 139781788624398
Paperback356 pages

Book Description

With growing demands, organizations are looking for systems that are robust and scalable. Therefore, the Spring Framework has become the most popular framework for Java development. It not only simplifies software development but also improves developer productivity. This book covers effective ways to develop robust applications in Java using Spring.

The book has three parts, where each one covers the building of a comprehensive project in Java and Spring. In the first part, you will construct a CMS Portal using Spring's support for building REST APIs. You will also learn to integrate these APIs with AngularJS and later develop this application in a reactive fashion using Project Reactor, Spring WebFlux, and Spring Data. In the second part, you’ll understand how to build a messaging application, which will consume the Twitter API and perform filtering and transformations. Here, you will also learn about server-sent events and explore Spring’s support for Kotlin, which makes application development quick and efficient. In the last part, you will build a real microservice application using the most important techniques and patterns such as service discovery, circuit breakers, security, data streams, monitoring, and a lot more from this architectural style.

By the end of the book, you will be confident about using Spring to build your applications.

Table of Contents

Chapter 1: Journey to the Spring World
Spring modularity
Setting up our development environment
Summary
Chapter 2: Starting in the Spring World – the CMS Application
Creating the CMS application structure
Running the application
Creating the REST resources
Adding service layer
Integrate with AngularJS
Summary
Chapter 3: Persistence with Spring Data and Reactive Fashion
Learning the basics of Docker
Spring Data project
Creating the final data access layer
Creating the Docker image for CMS
Putting in Reactive fashion
Summary
Chapter 4: Kotlin Basics and Spring Data Redis
Learning Kotlin basics
Wrapping it up
Creating the project
Running the Redis instance
Understanding Redis
Spring Data Reactive Redis
Creating a Twitter application
Testing APIs
Summary
Chapter 5: Reactive Web Clients
Creating the Twitter Gathering project
Starting the RabbitMQ server with Docker
Spring Messaging AMQP
Enabling Twitter in our application
Spring reactive web clients
Changing the Tracked Hashtag Service
Testing the microservices' integrations
Spring Actuator
Summary
Chapter 6: Playing with Server-Sent Events
Creating the Tweet Dispatcher project
Server-Sent Events
Reactor RabbitMQ
Filtering streams
Dockerizing the whole solution
Running the containerized solution
The docker-compose tool
Summary
Chapter 7: Airline Ticket System
The Airline Ticket System
Spring Cloud Config Server
Spring Cloud service discovery
Spring Cloud Zipkin server and Sleuth
Spring Cloud Gateway
Putting the infrastructure on Docker
Summary
Chapter 8: Circuit Breakers and Security
Understanding the service discovery power
Flights microservice
When the services fail, hello Hystrix
Spring Boot Admin
Spring Cloud Zuul
Summary
Chapter 9: Putting It All Together
The airline Bookings microservice
The airline Payments microservice
Learning about the Turbine server
Hystrix Dashboard
Creating the Mail microservice
Creating the Authentication microservice
Monitoring the microservices
Dockerizing the microservices
Running the system
Summary

What You Will Learn

  • Implement REST APIs with Spring REST support
  • Introduce the Spring Boot and understand how it makes creating robust applications extremely simple
  • Understand how Spring Data helps us add persistence in MongoDB and SQL databases
  • Introduce Reactive Programming and use this with Spring Webflux
  • Implement a Reactive REST client and learn how it can create asynchronous applications
  • Create a robust, scalable, and fault tolerant application with Spring Messaging
  • Implement a websocket to add interactive behaviors in your applications
  • Introduce the Spring Cloud projects

Authors

Table of Contents

Chapter 1: Journey to the Spring World
Spring modularity
Setting up our development environment
Summary
Chapter 2: Starting in the Spring World – the CMS Application
Creating the CMS application structure
Running the application
Creating the REST resources
Adding service layer
Integrate with AngularJS
Summary
Chapter 3: Persistence with Spring Data and Reactive Fashion
Learning the basics of Docker
Spring Data project
Creating the final data access layer
Creating the Docker image for CMS
Putting in Reactive fashion
Summary
Chapter 4: Kotlin Basics and Spring Data Redis
Learning Kotlin basics
Wrapping it up
Creating the project
Running the Redis instance
Understanding Redis
Spring Data Reactive Redis
Creating a Twitter application
Testing APIs
Summary
Chapter 5: Reactive Web Clients
Creating the Twitter Gathering project
Starting the RabbitMQ server with Docker
Spring Messaging AMQP
Enabling Twitter in our application
Spring reactive web clients
Changing the Tracked Hashtag Service
Testing the microservices' integrations
Spring Actuator
Summary
Chapter 6: Playing with Server-Sent Events
Creating the Tweet Dispatcher project
Server-Sent Events
Reactor RabbitMQ
Filtering streams
Dockerizing the whole solution
Running the containerized solution
The docker-compose tool
Summary
Chapter 7: Airline Ticket System
The Airline Ticket System
Spring Cloud Config Server
Spring Cloud service discovery
Spring Cloud Zipkin server and Sleuth
Spring Cloud Gateway
Putting the infrastructure on Docker
Summary
Chapter 8: Circuit Breakers and Security
Understanding the service discovery power
Flights microservice
When the services fail, hello Hystrix
Spring Boot Admin
Spring Cloud Zuul
Summary
Chapter 9: Putting It All Together
The airline Bookings microservice
The airline Payments microservice
Learning about the Turbine server
Hystrix Dashboard
Creating the Mail microservice
Creating the Authentication microservice
Monitoring the microservices
Dockerizing the microservices
Running the system
Summary

Book Details

ISBN 139781788624398
Paperback356 pages
Read More
From 2 reviews

Read More Reviews

Recommended for You

Pentaho 5.0 Reporting by Example: Beginner’s Guide Book Cover
Pentaho 5.0 Reporting by Example: Beginner’s Guide
$ 29.99
$ 15.00
Spring 5.0 Project: Building a Travel Website [Video] Book Cover
Spring 5.0 Project: Building a Travel Website [Video]
$ 124.99
$ 25.00
Spring 5.0 Core Training [Video] Book Cover
Spring 5.0 Core Training [Video]
$ 124.99
$ 25.00
Working with Data and Cloud in Spring 5.0 [Video] Book Cover
Working with Data and Cloud in Spring 5.0 [Video]
$ 124.99
$ 25.00
Microservices and Cloud-Native Applications with Spring 5.0 [Video] Book Cover
Microservices and Cloud-Native Applications with Spring 5.0 [Video]
$ 124.99
$ 25.00
Getting Started with Spring 5.0 [Video] Book Cover
Getting Started with Spring 5.0 [Video]
$ 124.99
$ 25.00