Chapter 14: Optimizing Performance Using the Memory Cache

Memory caches optimize performance by reusing earlier results instead of repeating execution of heavy workloads. This chapter starts by showing that Google App Engine’s low-level memory cache (memcache) API is relatively simple to use. Then the chapter explains that implementing a full caching strategy is less simple because of some pitfalls when implementing the serializable interface and because caches need to be maintained. At the end of the chapter, the JCache API (Java Specification Request [JSR] 107) is discussed as an alternative to Google’s low-level memcache API.

Using the Cache API for Basic Purposes

Google provides two APIs for memory caching (or memcache): the low-level API ...

Get Essential App Engine: Building High-Performance Java Apps with Google App Engine 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.