SimpleCache

Content Type: Module
Categories: Utility,Data

Overview

SimpleCache provides efficient, scalable in-memory caching for Mendix applications running in multi-node environments, improving performance and reducing database load.

SimpleCache allows entities to be cached and quickly retrieved across multiple application nodes. It supports real-time cache invalidation, registry tracking, and seamless integration with Mendix Java actions. Ideal for scenarios demanding rapid data access and reduced backend stress, enhancing your application's responsiveness and reliability without external dependencies.

Documentation

SimpleCache is designed for Mendix applications running in multi-node environments that require efficient caching to enhance performance. Customers commonly use this module when:

  • High Read Scenarios: Frequent database reads can degrade application performance; SimpleCache drastically reduces this overhead.

  • Multi-Node Deployments: Applications distributed across multiple nodes needing consistent caching solutions without external dependencies.

  • Real-time Data Access: Improve responsiveness by caching critical entities and retrieving them rapidly from memory.

SimpleCache solves performance bottlenecks related to frequent database access, minimizes backend load, and enhances the overall responsiveness and reliability of Mendix applications.

 

Features and Limitations

Features:

  • Multi-node Caching: Each node maintains its own in-memory cache.

  • In-memory Caching: Rapid access to cached entities directly from RAM.

  • Real-time Cache Invalidation: Support for immediate cache item invalidation via database-driven flags.

  • Registry Tracking: Maintains a centralized registry to manage cache invalidation across nodes.

  • Java Actions: Easy integration via custom Java actions for caching, retrieving, and invalidating items.

  • Lifecycle Management: Cache clearing on node shutdown to avoid stale data.

Limitations:

  • Memory-based Storage: Data stored in the cache is volatile; restarts clear cached data.

  • Cache Consistency: Slight delay may occur when invalidating cache across multiple nodes due to database-driven invalidation checks.

  • Scalability Consideration: Intended for moderate cache sizes; very large caches might impact memory usage.

 

Dependencies

  • Guava Library

 

Known Bugs

  • Currently, there are no known bugs.

 

Frequently Asked Questions

Does SimpleCache persist data after a node restart?

  • No, the cache is fully in-memory; restarting a node clears all cached items.

Can I control cache invalidation explicitly?

  • Yes, using provided Java actions, you can invalidate specific items or clear the entire cache at any time.

Is external configuration required for multi-node caching?

  • No, SimpleCache internally manages node-specific caches using built-in mechanisms without external tools.

Releases

Version: 1.0.0
Framework Version: 10.18.0
Release Notes: Initial version