Caching Strategy

Every multiuser JADE application requires a caching strategy. A good caching strategy ensures that the objects stored in your local cache are the latest editions, and that this is maintained with the minimum amount of network and processing activity.

An application that makes efficient use of cache will have significant performance advantages over one that does not. JADE’s distributed cache capability is one of its key strengths.

In general, you should use JADE's automatic cache coherency. With automatic cache coherency enabled, objects updated in other nodes (database server, application servers, background nodes, or fat clients) are automatically reloaded in local cache if they are accessed again.

You can use edition checking in an optimistic strategy for detecting concurrent updates in a simple edit scenario. For more details, see "Edition Checking", in Part 4, "Design Considerations", of the Erewhon Demonstration System Reference included with the Example schemas and also available on the JADE Web site at https://www.jadeworld.com/jade-platform/developer-centre/documentation/white-papers.

For details about designing and building an effective caching strategy, see "Cache Synchronization" in Part 4, "Design Considerations", of the Erewhon Demonstration System Reference.