Design a system for a high-traffic e-commerce (e.g. Amazon, Walmart) so that on every N-th order, a predetermined promotional discount (e.g. 25%) would be applied to the total price in real-time (i.e. not done asynchronously such as applying the discount retroactively after purchase).