What needs agreeing before connecting?
Four things, in writing and before programming: what travels, in which direction and when, which system wins if the data doesn’t match and what happens if something fails. It’s the integration contract: with it I give you an estimate in hours and we know what needs testing.
- What travels
- The data for each operation (an order, a stock change, a new customer) and the identifier that distinguishes it.
- Direction and timing
- From which system to which, and whether immediately or at intervals, sending only what has changed. An order is best passed on immediately; stock can wait.
- Who wins
- Which system holds the correct data when the two don’t match.
- If it fails
- How many times it’s retried, how creating the same thing twice is avoided (what’s known as idempotency) and who gets alerted.