O'Reilly logo

RESTful Java Patterns and Best Practices by Bhakti Mehta

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 4. Designing for Performance

REST is an architectural style confirming to the web architecture design and needs to be properly designed and implemented so that it allows you to take advantage of the scalable web. This chapter covers advanced design principles related to performance that every developer must know when building RESTful services.

Topics covered in this chapter include the following:

  • Caching principles
  • Asynchronous and long-running jobs in REST
  • HTTP PATCH and partial updates

We will elaborate on the different HTTP cache headers and learn how to send conditional requests to see whether the new content or the cached content needs to be returned. We will then show with samples how to use JAX-RS to implement caching.

Additionally, we ...

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