Dynamic Drink Market (DDM) is a system designed to simulate a dynamic pricing market applied to a drink menu.
The goal is to allow product prices to change in real time based on demand, creating an interactive and behavior-driven experience.
In traditional systems, product prices are static and do not reflect real-time changes in demand.
This limits:
- Revenue optimization
- User interaction with the system
- Exploration of dynamic market behavior
DDM introduces a model where prices respond directly to user activity.
The system is built around a dynamic pricing engine that:
- Records drink orders
- Calculates demand in real time
- Adjusts prices based on defined rules
- Reflects price changes immediately
This approach enables a simulated real-time market environment.
The system operates through the following sequence:
- A user places an order
- The system records the order
- Demand for the product is updated
- The pricing engine recalculates the price
- The new price is stored
- The system returns the updated price
The system is composed of the following modules:
Responsible for registering each user order.
Calculates dynamic prices based on demand.
Defines the structure of drinks, orders, and metrics.
Handles persistence of historical data.
Displays prices and system state to users.
The initial version of the system includes:
- Basic order simulation
- Dynamic price calculation
- In-memory data handling
- No required database persistence
- No advanced user interface
The primary goal is to validate the pricing model.
The system may evolve to include:
- Database integration for persistence
- Real-time updates (e.g. WebSockets)
- Data visualization and analytics
- Administrative dashboard
- Multi-user simulation
- The system must balance stability and dynamism
- Pricing logic should be predictable but not trivial
- Performance should support fast updates
- Architecture should allow future scalability