Reconciliation Support

This section explains the data reconciliation in microservice framework by generating and validating the sequence numbers.

In a distributed application, where a continuous transmission of data/event takes place from one subsystem to another, there is a possibility of data loss, due to unexpected failures during transmission.

Even though such cases are a rarity, it is the responsibility of systems involved to verify that the transmitted data is intact.

Data Reconciliation in MSF

To provide a way for reconciling transmitted event data in a microservice system, Temenos MSF makes use of the following fields, which are available in its events.

  • Event source ID
  • Business key
  • Sequence number

Reconciliation is effectively achieved by generation and validation of sequence numbers, based on business key and event source during different stages of an event, that is, event production and consumption.

Field name in GenericEvent

Field name in CloudEvent

Description

sequenceNo

sequenceno

Sequence number to keep track of events

eventSourceId

source

name of originating system

businessKey

businesskey

key to identify a business object

Sequence Number Generation

Sequence number can be generated in the following two ways:

Sequence Number validation

From an event consumer perspective, a default method isSequenceValid() is available in Function and EventProcessor interfaces to enable MS developers in validating the sequence number in an event, based on businessKey and eventSourceId.

isSequenceValid() - method signature
default void isSequenceValid(final Context ctx) throws FunctionException

Since an empty default implementation is provided at interface level, implementing this new method is an optional requirement.

NOTE: businessKey, eventSourceId and sequenceNo are available in context headers for validation

Copyright © 2020- Temenos Headquarters SA

Published on :
Wednesday, October 12, 2022 6:49:17 PM IST

Feedback
x