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

Summary

This chapter covered some serious ground introducing fundamental concepts of caching, demonstrating the different HTTP caching headers such as Cache-Control, Expires, and so on. We also saw how headers work and how ETags and Last-Modified headers work for conditional GET requests that can improve performance. We covered best practices for caching, how RESTEasy supports server-side caching, and how Facebook API uses ETags. This chapter addressed asynchronous RESTful resources and best practices when working with an asynchronous API. We covered HTTP Patch and partial updates along with JSON Patch (RFC 6902).

The next chapter will deal with advanced topics that every developer building RESTful services should know related to commonly used ...

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