Caching
Ector offers two types of caching that can be configured based on the merchant's needs. It's advisable to try both methods to understand which one best fits the specific traffic and resources of your installation.
The caching type configuration is defined within the Ector Core
module during its setup.
FileSystem Cache
This cache level is generally the most performant up to medium traffic levels, as it allows data to be saved to the file system, enabling quick retrieval.
Redis Cache
This cache level is the most performant and scalable, as it allows data to be saved in a Redis database, enabling rapid retrieval. This requires configuring the Ector Redis
module, which handles the connection to the Redis database.
This type of cache is recommended for installations with high traffic and a large number of resources to be fetched from the cache, i.e., many configurations.
Choosing the Right Caching Strategy
To choose the most suitable caching strategy, you need to conduct tests and stress tests to understand which is best for your specific case.
Recommended Tools for Stress Testing
- Autocannon: A tool for performing load testing on HTTP.
- JMeter: An open-source application for load and functional performance testing.
Using these tools can help determine which caching strategy is more efficient for your site's specific needs.