Book Image

Building RESTful Web Services with Spring 5 [Video]

By : Raja CSP Raman
Book Image

Building RESTful Web Services with Spring 5 [Video]

By: Raja CSP Raman

Overview of this book

<p><span id="description" class="sugar_field">REST is an architectural style that tackles the challenges of building scalable web services. In today's connected world, APIs have taken a central role on the web. APIs provide the fabric through which systems interact, and REST has become synonymous with APIs.</span></p> <p><span id="description" class="sugar_field">The depth, breadth, and ease of use of Spring makes it one of the most attractive frameworks in the Java ecosystem. Marrying the two technologies is, therefore, a very natural choice. This course takes you through the design of RESTful web services and leverages the Spring Framework to implement these services. </span></p> <p><span id="description" class="sugar_field">It also brings the power of the latest Spring 5.0 release, working with MVC built-in as well as the front end framework. It then goes beyond the use of Spring to explores approaches to tackle resilience, security, and scalability concerns. Finally, the course ends by taking you through building a Java client for your RESTful web service.</span></p> <p><span id="description" class="sugar_field">All the code and supporting files for this course are available on Github at <a style="font-weight: normal;" href="https://github.com/PacktPublishing/Building-RESTful-Web-Services-with-Spring-5" target="_new">https://github.com/PacktPublishing/Building-RESTful-Web-Services-with-Spring-5</a></span></p> <h2><span class="sugar_field">Style and Approach</span></h2> <p><span class="sugar_field"><span id="trade_selling_points_c" class="sugar_field">This course uses a module-based approach, viewers will be taken through a set of specific patterns and tested practices to build effective RESTful systems in Java using the Spring framework.</span></span></p>
Table of Contents (6 chapters)
Chapter 3
Flux and Mono in Spring
Content Locked
Section 1
Benefits of Reactive programming
Let's assume we have one million user transactions happening in our application. Next year, it is going to increase to 10 million, so we need to scale it. The traditional method of doing this is to add enough servers (horizontal scaling). Instead of doing horizontal scaling, what if we get an option to scale with the same servers? Yes, Reactive programming will help us to do that. Reactive programming is all about non-blocking applications that are synchronous and event-driven, and it doesn't require a lot of threads to scale vertically rather than horizontally (through clustering). - Understand back pressures and Reactive Streams - Explore WebFlux - Learn about the Flux and Mono