O'Reilly logo

Building a RESTful Web Service with Spring by Ludovic Dewailly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Scaling a RESTful Web Service

In today's world, the Internet has taken a central role. And with popular web services, such as Facebook or Twitter, handling billions of requests daily, scalability is a major challenge that service designers are facing. This chapter aims at providing ideas and techniques that can be applied by service designers to deal with scalability concerns.

In this chapter, we will discuss the following topics:

  • The benefits of clustering
  • Load balancing
  • Distributed caching
  • Asynchronous communications

Clustering

Before we look at clustering techniques, let's discuss the concepts and differences between scaling up and scaling out.

Scaling up versus scaling out

One way to deal with increased traffic is to scale a web service's ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required