Skip to content

Real-Time Inventory Engine

The line-item inventory engine at the heart of a US storage-logistics platform, built on Salesforce with a Java core and kept correct in real time under concurrent stock movements.

A US storage-logistics business runs on knowing exactly what stock sits where, right now, as it moves. FinancialForce delivered that software on the Salesforce platform, with Java at its core, and at the heart of it sat the line-item inventory engine. This was a senior, time-boxed consultancy, architect and hands-on developer both, designing the engine that kept inventory accurate in real time across the full pick-to-ship workflow.

SalesforceApexVisualforceJava

The problem: inventory correct in real time

Real-time inventory correctness is demanding on several axes at once. The model has to represent stock at the level the warehouse floor works in, down to the bin. Movements have to be recorded as they happen, many at a time, without the count drifting. And the number a picker sees has to be right, because a wrong count is a wrong pick, a wrong shipment, or an order that cannot be filled. Any one of those is ordinary; all three together, under load, is the work.

A normalised model

So the engine was built on a richly normalised data model. Stock hierarchies, bin-level locations, movement audit trails and order-line associations each had their proper place, related rather than flattened, so the model could answer where an item was, how it got there through its trail of movements, and which orders it was promised to. Every stock movement was recorded against its bin as it happened, an append-only audit trail, so that with receipts, picks and transfers all landing together, the count on the shelf and the count in the system stayed the same.

The normalised inventory model, with stock movement as the central audit trailThree entities, stock item, bin location and order line, each relate to a central stock-movement record. Every movement is recorded as being of an item, at a bin, and for an order, giving an append-only audit trail, while the model keeps real-time inventory accurate under concurrent moves.of itemat binfor orderStock itemBin locationOrder lineStock movementappend-only audit trail
A normalised model with the stock movement as its audit trail: every movement recorded against its item, bin and order, and the count kept accurate in real time under concurrent picks and moves.

Salesforce as the hub

None of this ran in isolation. The wider remit was the integration layer that made the Salesforce platform the hub between the outside systems (warehouse, ERP and shipping) and the internal Java and data systems. Bending a business-application platform to carry a demanding real-time data engine, in Apex and Visualforce alongside Java, took the key architectural decisions and hands-on delivery, in Scrum sprints, working closely with product stakeholders to keep the build aligned with what the business needed.

Salesforce as the integration hub between external and internal systemsThe Salesforce platform sits at the centre as the integration hub. On one side it connects to external systems (warehouse, ERP and shipping); on the other to internal Java services and data systems. Salesforce carries Apex, Visualforce and a Java core with the real-time inventory engine.Salesforcethe integration hubApex · Visualforce · Java corereal-time inventory engineExternal systemsWarehouseERPShippingInternal systemsJava servicesData systemsA business-application platform, bent to carry a demanding real-time data engine
The wider remit was the integration layer that made the Salesforce platform the hub between the outside systems (warehouse, ERP and shipping) and the internal Java and data systems, with Apex and Visualforce alongside a Java core carrying the real-time inventory engine.

Range, not just a stack

The stack was not a fashionable one, and that is part of the point. A hard engineering problem, real-time correctness under concurrency, does not care what platform it lands on; it has to be solved wherever the business runs. Solving it here, on Salesforce with a Java core, integrating a warehouse’s worth of external systems, in a focused engagement, is as much a demonstration of range as of the craft.