Senior
A new SKU (meat grinder) appears in the Postgres master system — should it or should it not appear in Redis?
sobes.tech AI
Answer from AI
If a new SKU (meat grinder) appears in the Postgres master system, the decision whether it should appear in Redis depends on the architecture and purpose of Redis in the system.
Redis is often used as a cache to speed up data access. If the SKU is actively used in operations requiring quick data retrieval (for example, for display on a website or in an application), then it should be added to Redis. If the SKU is not expected to be frequently read or updated in real-time, it can be omitted.
Therefore, a new SKU should appear in Redis if:
- It is frequently requested and needed with low latency.
- Redis is used for caching data from Postgres.
Example: when adding a new SKU to Postgres, the system can send an event to a queue, and the service will update the cache in Redis.