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 ...
Get Building a RESTful Web Service with Spring now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.