EN·VI·KO·JA Contact
Services / Development Biz / Data & integration
[ Data & integration · Interfaces and reliability ]

Integration thatloses no message

ERP, MES, WMS, web shops, partner EDI and devices exchange messages that are retried and never lost.
Every interface has a contract, a box for what could not be delivered and a screen that watches it.

Integration inventory

Every interface on one hall plan

We list each interface with its route, volume, timing, owner and what a failure costs.

ERP
MES
WMS
Web shop · EDI
01
02
03
04
05
06
Whiteboard survey · boxes = systems, lines = interfaces
Survey slipsfound → risk
  1. 01
    Scripts on one person’s PC

    !Stops when that person is away

  2. 02
    Systems writing into each other’s databases

    !An upgrade on one side breaks the other

  3. 03
    Files dropped in shared folders or FTP

    !Half-written files read, nobody told

  4. 04
    Manual re-keying between screens

    !Typos and a day of delay

  5. 05
    Partner EDI on an old line

    !Carrier ending the service

  6. 06
    Device feeds with no buffer

    !Data lost when the network drops

Inventory summary (example)

Nordlicht Components · Stuttgart HQ and Hai Phong plant

42interfaces
9manual
6scripts without an owner

3 direct database writes · 2 EDI links on legacy lines

Integration topology

From point-to-point to hub and bus

Ten systems wired directly can need up to 45 links; a gateway and an event bus keep the count growing slowly.

ERP–MES
ERP–WMS
MES–WMS
CRM–ERP
Point-to-point
45links for 10 systems · one cord per pair

n(n−1)/2 links as systems grow

subscriberERP
subscriberWMS
subscriberData platform
subscriberCRM
API gatewayauth · quotas · logs
system · process · experience
Event bus · brokerKafka · RabbitMQpublish once, many subscribers
legacy DB → CDC
calls
Sorter mimic · hub and bus
  1. Point-to-point

    Two or three systems that rarely change

    n(n−1)/2 links as systems grow

  2. API gateway

    One front door for synchronous calls

    Authentication, quotas and logs in one place

  3. Event bus · broker

    Publish once, many subscribers (Kafka, RabbitMQ)

    Topic ownership and retention

  4. Layered APIs

    System, process and experience APIs reused across projects

    Not every project needs all three layers

  5. CDC into the bus

    Legacy databases become event sources without code changes

    The same events feed the data platform

iPaaS or code

When iPaaS fits, and when code does

We compare both for each interface group; many companies end up with a mix.

iPaaSself-service bag drop
Codestaffed counter
ConnectorsHundreds of SaaS connectors ready
ConnectorsAny protocol, including old ones
Volume & latencyModerate volumes, minutes
Volume & latencyHigh-volume streams, milliseconds
Cost modelSubscription per connection or task
Cost modelBuild once, then hosting and support
Who changes itTrained administrators
Who changes itDevelopers, with full review
Lock-inFlows stored in the vendor’s format
Lock-inCode in your own repository
Where it runsVendor regions, some with on-site agents
Where it runsAny server or region you choose
Two bag-drop belts · one interface group at a time
iPaaSCriterionCode

Hundreds of SaaS connectors ready

Connectors

Any protocol, including old ones

Moderate volumes, minutes

Volume & latency

High-volume streams, milliseconds

Subscription per connection or task

Cost model

Build once, then hosting and support

Trained administrators

Who changes it

Developers, with full review

Flows stored in the vendor’s format

Lock-in

Code in your own repository

Vendor regions, some with on-site agents

Where it runs

Any server or region you choose

iPaaS we compare

MuleSoft · Boomi · Workato · Azure Logic Apps · Power Automate

RPA

RPA only where a system has nothing but a screen

Code we write

Spring Boot / Node.js services · Apache Camel · Kafka Connect

Duplicates & order

Sent twice, processed once

Networks repeat messages; the receiving side is built so a repeat changes nothing.

RoutedAlready routed
scan 1A2007211-230new key → order created
scan 2 · same key on the second boxA2007211-230nothing new happens
Two boxes, one key · the second one changes nothing
Inbox table · processed message IDs(example)
Message IDIdempotency keyFirst seenResult
m-904117f3a-…10:02:11processed
m-90412A2007211-23010:02:14processed · order created
m-90416A2007211-23010:02:19duplicate · stored result returned

The caller sends a unique key; the result is stored for 24 hours (example) and returned on a repeat

Sender
Idempotency key

The caller sends a unique key; the result is stored for 24 hours (example) and returned on a repeat

Transactional outbox

The record and its event are saved in one transaction; a relay publishes the event

Broker
Order per key

Events for one order share a partition key and arrive in order

Receiver
Idempotent consumer

Processed message IDs kept in an inbox table

Business-key uniqueness

Invoice number plus entity can exist only once

An honest delivery promiseAt-least-once delivery plus the steps above, rather than a claim of exactly-once

Retries & dead letters

Retries, dead letters and replay

Temporary errors are retried with backoff; anything still failing is parked with its reason, never dropped.

Fragile messageValidation errors go to review, not retry
Dead-letter shelf · kept with its reason, never dropped
Irregularity reportDLQ-0091

One message’s journey (example)

MessageOrder CR-58213
RouteCedar Ridge web shop (Portland) → WMS in Ho Chi Minh City
ErrorRejected: unknown SKU
Retryno retry
Parkedparked in the dead-letter queue
FixSKU mapping added 10:38
Replayreplayed 10:42
Deliveredpicked 11:05
PARKEDREPLAYED
Backoff with jitter · five tries (example)
  1. 01
    Timeouts everywhere

    Each call gives up after a set time, e.g. 3 seconds (example)

  2. 02
    Exponential backoff with jitter

    1, 2, 4, 8, 16 seconds, randomised, five tries (example)

  3. 03
    Only transient errors

    Network, 429 and 5xx retried; validation errors go straight to review

  4. 04
    Circuit breaker

    Calls to a failing system pause for a cool-down

  5. 05
    Dead-letter queue

    The message, its error and its history kept for review

  6. 06
    Replay with audit

    After a fix, messages are resent with who and when recorded

Transactions across systems

One order across four systems

A saga runs the steps in order and, if one fails, undoes the earlier ones with compensating steps.

Door 1 · Web shopOrder accepted
↺ undoCancel the order and tell the customer
Door 2 · WMSStock reserved
↺ undoRelease the reservation
Door 3 · Payment providerPayment captured
↺ undoRefund
Door 4 · Carrier APIShipment booked
✕ failedNo carrier slot
ORD-7731corr 4e1d
Interline tag · legs of one order↺ = compensating step
1
Order acceptedWeb shop

↺Cancel the order and tell the customer

2
Stock reservedWMS

↺Release the reservation

3
Payment capturedPayment provider

↺Refund

4
Shipment bookedCarrier API

↺Cancel the booking

5
Sale recordedERP

↺Final step, after shipment

Design choices
  • Orchestration: one coordinator calls each step and keeps the state
  • Choreography: each system reacts to the previous event
  • One correlation ID follows the order through every system
Contracts & versions

Contracts that change without breaking

Each interface has a machine-readable contract, and changes follow rules both sides agreed in advance.

Code editor · the interface contract file and its contract test
  1. 1
    OpenAPI 3.1 · AsyncAPI 3.0

    REST endpoints and event topics described the same way

  2. 2
    Schema registry

    Avro, JSON Schema or Protobuf with a backward-compatibility check

  3. 3
    Additive changes are safe

    A new optional field never breaks a consumer

  4. 4
    Breaking change = new version

    /v2 or topic.v2 runs beside v1 for six months (example)

  5. 5
    Sunset notice

    Deprecation and Sunset headers plus a dated notice to every consumer

  6. 6
    Consumer-driven contract tests

    Pact tests in CI catch a breaking change before release

Machine-to-machine security

Identity and rights between systems

Systems prove who they are and get only the rights they need, just like people do.

1OAuth 2.0 client credentials
2mTLS
3Secrets vault
4Partner EDI
5Payload protection
6API threats
X-ray · message IF-07 · machine-to-machine
CLEARtoken: orders.write · 5 min · certificate valid
NO TOKEN401 · pulled aside for review →
Port IF-07 · mTLSCertificate valid · token 5 min
401 · pulled asideNo valid tokenreq 5c2e · 10:17
Rack port · no valid certificate or token, no connection
  1. 1OAuth 2.0 client credentials

    Narrow scopes and short-lived tokens per system

  2. 2mTLS

    Both ends present certificates on plant-to-cloud and partner links

  3. 3Secrets vault

    Keys and passwords in Azure Key Vault or HashiCorp Vault, rotated

  4. 4Partner EDI

    AS2 with signed receipts, or SFTP with keys instead of passwords

  5. 5Payload protection

    Personal-data fields encrypted or tokenised; logs masked

  6. 6API threats

    Rate limits and object-level checks along the OWASP API Security Top 10

Integration monitoring

Watching every belt in the hall

Each interface gets its own health view, and alerts speak in business terms, not only error codes.

Stock · WMS → ERP
840123456789msg/minp95 0.4 s · DLQ 0
Orders · web shop → WMS Hai Phong
310123456789msg/minp95 0.6 s · DLQ 0

“No orders reached the Hai Phong WMS for 10 minutes” (example)

EDI · partners → ERP
120123456789msg/minp95 2.1 s · DLQ 1
Devices → MES
1,230123456789msg/minp95 0.1 s · DLQ 0
Runbook per interfaceIF-07

1Symptom: orders stop at the WMS

2Check: consumer lag, gateway 5xx, DLQ depth

3Safe replay from the last committed offset

4Owner on call: integration desk

Control-room console · one lamp row per interface (figures are examples)
  1. 01End-to-end trace

    W3C Trace Context and OpenTelemetry carry one ID across systems

  2. 02Health per interface

    Throughput, p95 latency, error rate, consumer lag, dead-letter depth

  3. 03Business alerts

    “No orders reached the Hai Phong WMS for 10 minutes” (example)

  4. 04Daily counts

    Sent and received counts compared per interface

  5. 05Runbook per interface

    Symptoms, checks and safe replay steps

  6. 06Monthly report

    Incidents, changes and upcoming version retirements

FAQ

Data & integration questions

If we buy an iPaaS, do we still need developers?

Less, but some. Mapping rules, error handling, contracts and tests still need design, and old protocols often need a small custom adapter.

Does every interface need to be real-time?

No. We set the timing by what a delay costs: stock and orders in seconds or minutes, finance often daily. Faster costs more to run.

Can you connect packaged systems such as MES, WMS or a web shop platform?

Yes, through their APIs, webhooks or database change capture. We read the vendor’s documentation and test in a sandbox before touching production.

Our partners still use old EDI. Can you connect to them?

Yes. We translate EDIFACT, ANSI X12 or Japanese industry formats into your messages, and help move partners from legacy lines to AS2 or SFTP.

What happens to messages if the other system is down for hours?

They wait in the queue or broker, retries back off, and delivery resumes in order when the system returns. Nothing is dropped.

A vendor changed its API. Will our integration break?

Contract tests and version monitoring catch most changes before they reach production, and the adapter layer keeps the change in one place.

Will we hear about integration failures before users do?

That is the aim of business alerts: missing orders, growing lag or a filling dead-letter queue are reported to the owner first.

Can a repeated message create a second order?

No. The caller sends an idempotency key, the receiver keeps processed message IDs, and a business key such as invoice number plus entity can exist only once. We promise at-least-once delivery with these checks rather than claim exactly-once.

How are connections between systems secured?

Each system gets narrow, short-lived OAuth 2.0 tokens, and plant-to-cloud and partner links use mTLS. Keys sit in a vault such as Azure Key Vault or HashiCorp Vault and are rotated; personal-data fields are encrypted or tokenised and masked in logs.

Where does an integration project start?

With an inventory of every interface: its route, volume, timing, owner and what a failure costs. It shows the manual steps, ownerless scripts and direct database writes to fix first.

Tell us what you
need built.

A specialist replies within one business day — in English, Vietnamese, Japanese or Korean.

Book a consultationContact us
↑Back to top