Case Study

Manufacturing ERP for Production & Inventory

How we built a manufacturing ERP system spanning 8 factories and 50K SKUs — with multi-plant sync, BOM management, shop floor data capture, and 30% inventory reduction.

Industry
Manufacturing / Industrial
Duration
12 Months
Services
Full-Stack · MQTT · SAP Integration
Markets
North America

Multi-Plant ERP · BOM · Supply Chain

8
Factories
50K+
SKUs
30%
Inventory Reduction
Real-Time
Multi-Plant Sync

The Client's Vision

A mid-size manufacturer with 8 plants across three states was running on a mix of spreadsheets, legacy MRP software, and SAP for finance. Each plant had its own way of tracking production — some used paper travelers, others Excel. Inventory counts were done monthly and reconciliation took weeks.

They wanted a unified ERP that could sync production and inventory across all plants in real time, manage complex bills of materials, capture shop floor data via tablets, and integrate with SAP for orders and financials.

What Was Breaking

Multi-Plant Sync

Each plant operated as a silo. Transfer orders between plants took days to reflect. Corporate had no real-time view of total inventory or production status across the network.

BOM Management

Bills of materials were managed in spreadsheets. Multi-level BOMs with dozens of components were error-prone. Changes propagated manually — version drift between plants caused production issues.

Shop Floor Data

Operators recorded production and downtime on paper. Data entry happened at end of shift — by then accuracy suffered. No real-time visibility into line utilization or quality metrics.

Supply Chain Visibility

Purchasing relied on reorder points in spreadsheets. Lead times and supplier performance were tracked manually. Stockouts and overstock were common — no demand forecasting.

The Architecture We Built

We built a centralized manufacturing ERP with event-driven architecture. Shop floor tablets publish production events via MQTT. A sync service aggregates data and updates inventory in real time. BOMs are versioned and shared across plants. SAP integration handles sales orders and financial posting.

System Architecture

Next.js Plant Dashboards & Admin Portal
Per-plant production dashboards, inventory views, and BOM editor. Corporate roll-up and supply chain analytics
API Gateway & Auth Layer
Role-based access per plant and function. Plant managers, planners, and corporate admins have scoped permissions
PostgreSQL — Inventory, BOMs & Production
SKUs, multi-level BOMs, work orders, and plant-specific inventory. Transfer orders and production events
MQTT Bridge — Shop Floor Data Capture
Shop floor tablets publish production counts, downtime, and quality events via MQTT. Real-time ingestion and aggregation
SAP Integration & Redis Cache
Bi-directional sync with SAP for sales orders, material masters, and financial posting. Redis for inventory cache and real-time dashboards

The MQTT bridge was designed for unreliable shop floor networks. Tablets buffer events locally and retry until acknowledged. We use QoS 1 to ensure at-least-once delivery. Duplicate events are deduplicated server-side using event IDs.

Tech Stack

Next.js
Node.js
PostgreSQL
MQTT
Redis
SAP Integration
Multi-Plant
Analytics

How We Delivered It

Phase 1 — Weeks 1–6
Discovery & Data Model Design

Mapped production workflows across 8 plants. Audited existing BOM structure and SAP integration points. Designed multi-plant schema with plant-specific inventory buckets.

Phase 2 — Weeks 7–24
Core ERP & BOM Engine

Built inventory management with multi-plant sync. Implemented versioned BOM engine with multi-level explosion. Developed work order and production planning modules. Integrated with SAP for order and material data.

Phase 3 — Weeks 25–36
MQTT Shop Floor & Dashboards

Deployed MQTT broker and built ingestion pipeline. Developed tablet app for production entry and downtime logging. Built real-time dashboards for plant and corporate views.

Phase 4 — Weeks 37–48
Supply Chain & Rollout

Implemented demand forecasting and reorder logic. Built supplier performance tracking. Phased rollout — 2 pilot plants first, then 6 more over 8 weeks. Trained users and tuned workflows.

The Impact

Inventory levels
30% reduction
Optimized reorder points and visibility
8 plants
Real-time sync
Single source of truth across network
50K SKUs
Managed
Versioned BOMs and inventory accuracy
Shop floor data
Real-time
From paper travelers to live dashboards
“We finally have one system that all plants trust. Inventory reconciliation used to take two weeks — now it's real-time. The BOM versioning alone prevents costly production errors.”
— VP of Operations, Manufacturing

What Made This Work

Manufacturing ERP complexity scales with plants and SKUs. The multi-plant sync had to handle conflicting updates — we used optimistic locking and event sourcing for inventory movements. Transfer orders between plants are treated as first-class transactions with atomic commit.

MQTT was the right choice for shop floor data. Wi-Fi in plants is often spotty — tablets needed to work offline and replay when reconnected. We designed a thin client that buffers locally and syncs when network is available. Operators don't notice connectivity issues.

SAP integration required careful mapping. Material masters, plants, and storage locations had to align. We built an abstraction layer so our schema could evolve independently — the SAP adapter handles translation. Bi-directional sync needed conflict resolution — we treat SAP as source of truth for orders, our system for production and inventory.

Building a Manufacturing ERP?

We help manufacturers build production-grade ERP systems with real-time visibility. Let's talk about your architecture.

Book Strategy CallCase Studies