Delivered remotely for a business based in Manchester, United Kingdom. Names withheld by agreement.
Project Overview
Scaling a dropshipping catalog beyond a handful of wholesale partners quickly exposes the limits of manual spreadsheets and brittle point-to-point plugins. Stock counts fall out of sync between supplier warehouses and storefront listings, multi-item baskets require manual order splitting, and customer service teams field endless tracking inquiries when suppliers change couriers without notice.
To solve these operational bottlenecks for merchants in Manchester, we built a dropshipping management platform centered on a Laravel backend, a TypeScript-backed React workspace, and a strongly relational MySQL database. The system normalizes heterogeneous supplier feeds into a canonical product catalog, evaluates deterministic routing rules per line item, and automates end-to-end order dispatch and tracking reconciliation.
Fulfillment & Sync Friction
Merchants managing multi-vendor catalogs consistently confronted four operational failures before centralizing onto a dedicated orchestration engine:
- Inconsistent supplier feed formats: Wholesale partners delivered inventory via modern JSON APIs, legacy XML endpoints, and scheduled SFTP CSV drops with incompatible variant naming.
- Unprofitable routing defaults: Static one-to-one SKU bindings ignored backup suppliers when primary warehouses ran dry or raised shipping surcharges.
- Delayed tracking propagation: Partial shipments and carrier handoffs left storefronts stuck in generic "processing" states long after parcels left the depot.
- Silent margin erosion: Wholesale cost adjustments, FX swings, and dimensional weight fees wiped out retail profits before merchandising teams noticed.
Architectural Strategy
We structured the platform around a canonical catalog bridge and an event-driven order state machine. Rather than coupling storefront SKUs directly to raw vendor payloads, MySQL stores an intermediate canonical product graph linked one-to-many with supplier offers, wholesale cost tiers, and fulfillment SLA scores.
Laravel serves as both the synchronous API powering the React workspace and the asynchronous orchestration backbone managed by Laravel Horizon. Every incoming storefront order enters an idempotent pipeline that resolves supplier eligibility, locks buffered inventory, generates vendor purchase orders, and reconciles tracking and invoice records cleanly without blocking HTTP requests.
Core Capabilities
- Multi-Format Supplier Feed Ingestion: Streams and diffs REST, GraphQL, XML, and SFTP CSV feeds, applying configurable safety-stock buffers and automatic SKU variant matching.
- Rule-Based Smart Order Routing: Evaluates supplier stock availability, warehouse region, shipping SLA, and landed cost to route—or split—multi-item orders automatically.
- Automated Margin & Pricing Guardrails: Recalculates retail prices whenever wholesale cost or FX rates shift beyond threshold bands, pausing listings automatically if minimum margin floors break.
- Unified Tracking & Exception Hub: Normalizes courier scan webhooks across regional and international carriers, surfacing stalled dispatches and customs holds in a React triage queue.
- Supplier Settlement & Variance Ledger: Tracks transmitted purchase orders against supplier invoices, flagging discrepancies in unit prices or shipping surcharges prior to payout approval.
Technical Architecture
Storefront order webhooks and scheduled feed pollers enter Laravel endpoints, validating cryptographic signatures and persisting raw payloads before dispatching work onto prioritized Redis queues supervised by Horizon. MySQL maintains strict transactional consistency across inventory buffers, split sub-orders, and financial ledger entries, while React consumes paginated REST endpoints for live operational visibility.
Flow: Storefront Webhooks & Supplier SFTP/API Feeds → Laravel Ingestion Controllers → Prioritized Redis / Horizon Queues → Canonical Catalog & Routing Engine → MySQL Transactional Ledger → React Operations & Exception Console + Outbound Storefront Sync
Separating raw ingestion from canonical normalization lets engineers add new wholesale connectors without touching core pricing, routing, or storefront sync logic.
Technology Stack
| Category | Technology detail |
|---|---|
| Operations Console | React and TypeScript SPA for catalog mapping, margin rules, and exception queues |
| Core Backend | Laravel PHP 8.4 services orchestrating storefront webhooks, routing logic, and supplier adapters |
| Transactional Store | MySQL storing canonical SKUs, supplier feed mappings, split sub-orders, and payout ledgers |
| Queue Supervision | Laravel Horizon over Redis scaling isolated queues for feed ingestion, routing, and tracking |
| Supplier Connectors | Modular adapter layer ingesting REST, SOAP, SFTP CSV/XML, and EDI 850/856 feeds |
| Storefront Bridges | Bi-directional webhook and API connectors syncing orders and stock to external carts |
| Tracking Normalizer | Carrier webhook aggregator mapping multi-courier scan events into unified delivery states |
| Settlement Engine | Double-entry MySQL ledger reconciling wholesale invoices, shipping adjustments, and refunds |
| Search & Filtering | Indexed catalog attributes supporting fast SKU cross-matching across thousands of variants |
Engineering Trade-offs & Solutions
| Engineering Challenge | Solution & Trade-off |
|---|---|
| Huge nightly supplier CSV files risk memory exhaustion and queue starvation | Built chunked stream parsers that hash each vendor row and upsert only deltas into MySQL on a dedicated low-priority Horizon queue, trading real-time diffing complexity for predictable worker memory. |
| Duplicate storefront webhooks could transmit duplicate purchase orders to suppliers | Enforced idempotency keys combining storefront order ID and payload hash inside unique MySQL constraints before dispatching outbound supplier POs. |
| Pushing every minor supplier stock tick to external storefronts triggers API rate bans | Added Redis debouncing and threshold-based sync windows so stock changes batch efficiently while low-stock crossings push immediately. |
| Splitting one customer checkout across multiple suppliers complicates refunds and tracking | Modeled a parent orders table and child fulfillments rows in MySQL so partial dispatches, cancellations, and tracking numbers synchronize per line item cleanly. |
Security & Operational Integrity
Handling merchant storefront tokens, wholesale pricing contracts, and buyer shipping addresses requires strict access boundaries. Supplier and storefront OAuth credentials are encrypted using Laravel's envelope encryption before storage in MySQL, and all inbound webhooks verify HMAC signatures alongside timestamp replay windows.
Role-based access control inside the React console separates catalog merchandisers, support agents, and finance controllers, while an append-only MySQL activity log records every manual supplier reassignment, price override, and refund approval.
Performance & Queue Scalability
Supplier catalogs routinely span tens of thousands of variants updating multiple times per hour. By indexing supplier offer deltas and filtering unchanged rows prior to database writes, MySQL avoids unnecessary row-lock contention during peak sync windows.
Redis-backed Horizon supervisor pools auto-scale worker processes independently by workload class—keeping customer order routing and tracking webhook propagation consistently responsive even while heavy catalog imports execute in the background.
Operational Outcomes
Replacing fragmented spreadsheets and ad-hoc storefront plugins with a unified Laravel, React, and MySQL orchestration core delivered tangible operational clarity:
- Fewer stockout cancellations: Safety-stock buffers and automated backup-supplier failover prevent storefronts from accepting orders against depleted wholesale inventory.
- Hands-free multi-vendor fulfillment: Split-order routing and automated tracking propagation eliminate manual copy-pasting between merchant stores and supplier portals.
- Protected unit economics: Real-time landed cost guardrails and invoice variance checks stop silent margin leakage before unverified pricing goes live.
- Streamlined customer support: Support teams resolve delivery inquiries faster from a single React timeline combining storefront order state, supplier PO status, and normalized courier scans.