Skip to content

Add Redis support for Cart persistence and Number range #202

Description

Improvement

Shopware fully supports using Redis for cart persistence and number ranges.

The Operator should expose environment variables to allow users to use this DSN in their configuration to store the cart in Redis and relies an Redis atomic operation for the number range.

Reason

Some environments with specific performance requirements need to use Redis for cart persistence and number ranges.

Information

The proposal is to update the Store Spec to include this.
Following the current we could add the following:

type StoreSpec struct {
	Database DatabaseSpec `json:"database"`

	Container ContainerSpec `json:"container"`

....
	CartPersistence CartPersistenceSpec `json:"cartPersistence"`
 
	NumberRange NumberRangeSpec `json:"numberRangeSpec"`

....
}

type CartPersistenceSpec struct {
	RedisDSN string `json:"redisDSN"`
}

type NumberRangeSpec struct {
	RedisDSN string `json:"redisDSN"`
}

And these values are then expose to Shopware using specific environment variable like:
- `CART_PERSISTENCE_REDIS_URL`
- 'NUMBER_RANGE_REDIS_URL`

### Definition of Done

The Operator expose these 2 environment variables to the Shopware pods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions