the main role of the promotion system : the main provision of merchandise promotional preferential prices, if the product does not have a promotion, the original price of the goods.
Promotion Type:
- Straight down promotion: limited time straight down, limited time limit straight down
- Promotions: Full minus, full discount
- Package promotion (Buy with multiple items, n items to enjoy a discount
- Giveaway (buy n gift N)
- Seconds to Kill
Promotion Rules:
Restrictions:
- Product Restrictions: SKU,SPU, category, brand, merchant
- User limit: Pin
- IP restrictions
The high concurrency requirement for promotions is high due to the price of the product that the promotion offers, which may be accessed up to dozens of times for the promotion system each time the user browses the product page.
In order to respond to front-end requests in a timely manner, the computation should be as fast and simple as possible.
Because they are all query operations, Redis responds particularly quickly to read operations.
How to guarantee the real-time of promotional data?
When the promotion changes (straight down price, full minus price, restrictions), product changes (category change of the item, price change), if the Redis real-time data is updated quickly?
How do I quickly update redis with SOLR?
SOLR Promotional data storage structure:
With SOLR's inverted index principle, you can quickly update the product promotions in Redis with product information to find out what promotions are available for the current product, or to find current promotions with promotional IDs.
Price calculation process:
Promotion System overall structure:
E-commerce-promotion system