A computer implemented method for implementing a real time reconciling shared data structure among a plurality of participants, the shared data structure being stored in a memory, a portion of the shared data structure being coupled with a processor, the method comprising:
- receiving, by the processor via a network interface, a data transaction message from a participant of the plurality of participants, and determining, by the processor, whether the received data transaction message comprises a request data transaction message comprising data indicative of a request by the participant to modify data stored in the portion of the shared data structure or a notification data transaction message comprising data indicative that a request has been made to modify data stored in another portion of the shared data structure, and
- if the data transaction message comprises a request data transaction message:
- identifying, by the processor, based on the request data transaction message, at least one other participant of the plurality of participants to validate modifications to the data, and based thereon modifying the portion of the shared data structure to indicate validation is pending;
- generating, by the processor, a notification data transaction message for each identified participant, the notification data transaction message comprising data indicative of the request to modify the data in the portion of the shared data structure;
- transmitting, by the network interface coupled with the processor, each of the generated notification data transaction messages to the associated one of the identified at least one other participants;
- receiving, by the processor via the network interface responsive to the notification data transaction messages, a validation data transaction message from each of the identified at least one other participants, each of the received validation data transaction messages comprising data indicative of a response to the request to modify data stored in the portion of the shared data structure;
- determining, by the processor, based on the received validation data transaction messages, whether all of the identified other participants have validated the request to modify the data in the portion of the shared data structure, and based thereon, if all of the identified other participants have validated the request to modify the data in the portion of the shared data structure:
- generating, by the processor, a response data transaction message for each of the identified at least one other participants comprising data indicative of a confirmation of the modification to the data in the portion of the shared data structure;
- transmitting, by the network interface via the processor, the response data transaction message to each of the identified at least one other participants;
- modifying, in the memory via the processor, the data stored in the portion of the shared data structure according to the request to modify the data;
- and
- if less than all of the identified other participants have validated the request:
- generating, by the processor, a response data transaction message for each of the identified at least one other participants comprising data indicative that the data in the portion of the shared data structure has not been modified;
- transmitting, by the network interface via the processor, the response data transaction message to each of the identified at least one other participants;
- not modifying, in the memory via the processor, the data stored in the portion of the shared data structure according to the request to modify the data;
- and
- if the data transaction message comprises a notification data transaction message:
- validating, by the processor, based on the notification data transaction message, the request to modify data stored in the other portion of shared data structure, and based thereon modifying the portion of the shared data structure to indicate the request to modify the data in the other portion of the shared data structure and the validation thereof;
- generating, by the processor, a validation data transaction message comprising data indicative of a response, based on the validation, to the request to modify data stored in the other portion of the shared data structure;
- transmitting, by the network interface coupled with the processor, the validation data transaction message to the participant;
- receiving, by the processor via the network interface, a response data transaction message from the participant, the response data transaction message comprising data indicative of a confirmation of receipt by the participant of the validation transaction message, and determining, by the processor, whether the received response data transaction message comprises data indicative of a confirmation that the data in the other portion of the shared data structure has been modified or not, and modifying, by the processor, based on the received response data transaction message, the portion of the shared data structure.