Architecture
System overview
High-level architecture
┌─────────────────────────────────────────────────────────────────┐
│ OMNIUM OMS │
│ │
│ Products Prices Stores POs Orders Customers Inventory │
│ │
└──────┬──────────────────────────────────────┬───────────────────┘
│ │
│ Omnium REST API │ Webhook Events
│ (Flow calls Omnium) │ (Omnium calls Flow)
│ │
▼ ▼
┌─────────────────────────────────────────────────────────────────┐
│ FLOW RETAIL CORE │
│ │
│ ┌─────────────────┐ ┌──────────────────────────────────┐ │
│ │ Omnium Module │ │ Webhook Endpoint │ │
│ │ (internal/ │ │ (Omnium Event API) │ │
│ │ omnium/) │ │ │ │
│ └────────┬────────┘ └──────────────┬───────────────────┘ │
│ │ │ │
│ ▼ ▼ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ Async Job Queue │ │
│ │ (external_order_sync / external_receivement_sync) │ │
│ └──────────────────────────┬───────────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ Sync Engines (Background Workers) │ │
│ │ - Order Sync Engine │ │
│ │ - Receivement Sync Engine │ │
│ └──────────────────────────────────────────────────────────┘ │
│ │
│ POS Terminals ←→ Flow Core API ←→ PostgreSQL Database │
└─────────────────────────────────────────────────────────────────┘Communication patterns
1. Omnium → Flow (product data)
2. Omnium → Flow (orders via webhook)
3. Flow → Omnium (orders, customers, inventory)
Authentication
Background sync engines
Order sync engine
Receivement sync engine
Retry logic
Retry #
Delay
Data transformation
Price conversion
Country/market mapping
Country Code
Market ID
Last updated
Was this helpful?

