Shopware offers a variety of options for the use of Redis as an in-memory backend. The use of Redis offers essential advantages over file system-based cache backends due to the storage of all associated data in the main memory.
One of the most notable improvements in Redis 7 is the increased scalability. The introduction of distributed CRDTs (Convergent and Commutative Replicated Data Types) allows Redis to handle the complexity of distributed systems without compromising on consistency. This makes Redis 7 ideal for applications with high demands on real-time data processing and analysis.\n\nThe improved memory structure of Redis 7 maximizes the use of main memory resources and enables lightning-fast data retrieval. With support for flash memory as an extension of main memory, organizations can cost-effectively store and access huge data sets without sacrificing speed.
By using Redis as the HTTP cache backend, the access time to existing cache elements can be significantly reduced. Shopware stores the HTTP cache on the file system by default. With a high number of store accesses, this behavior can lead to performance problems.
A step-by-step guide to integrating Redis as an HTTP cache can be found at:
→ Shopware HTTP Cache with Redis
The app cache defines the standard cache adapter for Shopware. Shopware stores the app cache on the file system without additional configuration. If the store has a high number of accesses, this behavior can lead to performance problems. Redis can also be configured as backend storage by adjusting the Shopware settings.
A step-by-step guide to setting up Redis as an app cache adapter can be found here:
→ Set up Shopware app cache with Redis
By default, Shopware stores the increment storage on the file system in a transaction-safe manner, which leads to locks in the memory. The database table increment
is used for this by default. If several message consumers are executed, this table is often provided with InnoDB locks (Lock for Update), which can impair the performance of the workers. This can be remedied by the Linux-based in-memory service Redis, which also has atomic locking of transactions.
A helpful guide to using Redis as increment storage can be found at:
→ Shopware Increment Storage with Redis
Test the integration of Shopware with Redis now for 14 days free of charge. Use our project calculator and configure Shopware with Redis as cache, app cache and increment storage.