Skip to website
Joseph Tezquvan

The journal · Event order and business-owned system behaviour

The clock can observe a change without authorising its place in the sequence

A timestamp looked like an obvious way to keep a status view current. Delayed events showed why the implementation needed the sequence attached to the authorised transaction instead.

The timestamp was an attractive field to sort by. It was present on every event, could be read by a person and appeared to tell the receiving system which change was newest. That made it easy to assume that applying events in timestamp order would keep an internal status view correct. The assumption held through ordinary demonstrations. It became unreliable when we introduced delayed delivery and differences between producer clocks. An older authorised state could acquire a later-looking timestamp and overwrite a newer one in the view.

The 2025 rehearsal replayed 18,000 synthetic status events. Ninety-six arrived in conditions where wall-clock sorting could produce the wrong progression. No customer balances changed in the exercise, but an operator relying on the proposed view could have been misled. I wanted the team to identify what made the business state authoritative before choosing a convenient field to order it. The question was not simply whether the clocks were accurate enough. It was whether clock time was the right evidence for the decision the receiving application was making.

Ask what makes one state later than another

The source transaction assigned a version with the authorised change to the particular record. That version described the sequence the receiving view needed to respect. It was not a universal ordering of every event across the company. Different records could progress independently. Making that scope clear prevented the correction from becoming a larger claim than the business required. The engineering design needed to preserve the order relevant to the record, not invent a single global timeline from whichever machine had reported its time most confidently.

Some colleagues proposed tighter clock synchronisation as the primary repair. Better synchronisation was useful for observation and diagnosis, but it would not remove delayed delivery. A message can arrive late even when its producer's clock is accurate. Nor would synchronisation by itself establish that a timestamp carried the authority of the source transaction. I asked the source and receiving teams to separate those concerns. We should maintain useful clocks while giving the state-progression decision the evidence it actually needed.

The programme cost ₹46 lakh and delayed two planned service features. That trade-off mattered to the business sponsors, who had reasons for wanting their work delivered. I did not describe the correction as an abstract engineering improvement that automatically outranked every other request. I explained the misleading view the rehearsal had produced and the operating decisions that could depend on it. The CIO and the relevant owners assessed the revised sequence of work, with the cost and deferrals retained in the account.

The revised receiver checked the expected transaction version before advancing the view. An unexplained gap remained available for investigation rather than being filled with a guess based on arrival time. A late older version could not overwrite a later accepted state. The source record remained authoritative, and the view did not create or cancel lending events. Those boundaries made the engineering purpose understandable to credit and operations colleagues without asking them to accept the mechanism merely because it sounded technically more sophisticated.

A useful clock still has a limited job

We retained timestamps because they remained useful evidence about when a producer observed or emitted something and how the service behaved. Removing them would have discarded diagnostic context. The change was to stop asking them to establish a business sequence they did not own. I find that distinction useful in many engineering discussions: a field can be valuable and still be unsuitable for a particular decision. We do not need to choose between treating it as authoritative for everything and dismissing it entirely.

A replay of the same 18,000-event scenario produced the expected states after the change. The deliberately delayed cases remained part of that test. I reported the bounded result rather than claim that every possible ordering failure had been solved. The system still depended on source integrity, monitoring and an appropriate response when an expected event did not arrive. A version check can expose a gap; it cannot explain by itself why the gap exists or authorise the company to ignore the missing work.

That remaining operating responsibility needed attention. If the design simply held unexplained gaps without giving anyone a usable investigation route, we would have moved the uncertainty into a queue and called the architecture complete. The receiving team needed to know which source owner to contact, what evidence to preserve and how the view should communicate its limited state. I wanted the response to be part of the implementation, because a correct refusal to guess is only useful when the organisation can act on the uncertainty it reveals.

I also wanted the account to avoid an unintended financial claim. The rehearsal used synthetic status events. It did not identify a quantified historical customer loss, and it did not establish that 96 live accounts had been wrong. Those distinctions belong in the case because a technical demonstration can easily become a dramatic business story as it moves into an executive summary. The value of the exercise was that it exposed an assumption before the proposed implementation was accepted, with enough specificity to justify the correction.

The calendar can hide a different kind of assumption

An earlier schedule programme had made a related problem visible through dates rather than event order. A general-purpose adjustment produced 144 differences among 9,600 synthetic schedules when compared with the selected products' approved conventions. The library behaved consistently with its setting. That did not mean the setting represented the lender's intended action. A component can be technically dependable while carrying out a rule the business has not authorised. The implementation needed the right convention, not merely confidence that the library would repeat its own choice.

We held the affected release for three weeks and spent ₹32 lakh on correction and review support. The business owners confirmed 132 of the differing cases for the revised path; twelve still needed clarification and remained with the existing authorised process. I did not let engineering choose a generic fallback to make the population look complete. Nor did the synthetic exercise authorise changing a live borrower's obligation. The relevant professional and business owners retained that decision, while the team made the implementation and its limits reviewable.

For a board contribution, I would ask what authority a critical system field or default is being allowed to carry. Does a timestamp describe observation or business order? Does a calendar rule implement the agreement or merely a library option? Which unresolved conditions are held for a responsible decision, and what does that cost the operating plan? Directors do not need to select a sorting algorithm to examine whether management understands those distinctions. They need an account that makes the decision and its evidence clear enough to challenge.

My preference is to state the assumption before the system turns it into routine behaviour. A clock remains useful, a calendar library remains useful and automation remains worth building. The leadership responsibility is to connect each mechanism with the authority it supports and to retain the work outside that boundary. A passing demonstration should not allow a convenient technical choice to become an unspoken business rule. The implementation becomes more credible when the company can explain both what it knows and why a particular piece of evidence is entitled to determine the next state.