Real-time order and terminal coordination service for Megrim. Uses Redis for active order state and WebSockets for live updates between customers and merchant terminals.
- Accepts order actions over WebSocket
- Validates and forwards order processing to the Postgres service
- Stores active order state in Redis
- Broadcasts updates to terminal sessions
- Sends push notifications (APNs)
- Java + Spring Boot
- Redis (Jedis)
- WebSockets
- Ensure Redis is running locally.
- Set
API_ENVto match the Postgres environment. - Run with Maven:
./mvnw spring-boot:run
API_ENV:testorlive- Redis host/port are in
src/main/resources/application.properties
- Postgres microservice: order processing + business logic
- Flutter app: customer ordering + live updates
- NextJS admin: merchant dashboard