Method for processing messages in a distributed messaging system with a plurality of message targets, wherein at least one message target of the plurality of message targets operates according to a first standard and at least one message target of the plurality of message targets operates according to a second legacy standard, the method being performed by a message processing engine, the method comprising: - receiving a plurality of database commit indications, each database commit indication indicating a change of a database record; - in response to receiving a database commit indication according to the first standard of the plurality of database commit indications, generating a message envelope for each message target to be notified operating according to the first standard and at least one message according to the first standard within each message envelope and generating a message according to the second legacy standard for each message target to be notified operating according to the second legacy standard; - computing message envelope dependencies between generated message envelopes for a same message target operating according to the first standard, the message envelope dependencies defining an order of the message envelopes for the same message target operating according to the first standard; - computing message dependencies between the messages according to the first standard within each message envelope based at least on the standard of the messages of the respective message envelope and functions of the messages, the message dependencies defining an order of the messages according to the first standard within each message envelope; - sending the messages according to the first standard to the respective message target operating according to the first standard in a sequence based on the message envelope dependencies and the message dependencies; - sending the messages according to the second legacy standard to the respective message target operating according to the second legacy standard without computing a message dependency if no other message is pending for the message target concerned, or, if other messages for the message target concerned are pending, computing a message dependency and sending the messages according to the second legacy standard to the respective message target operating according to the second legacy standard in accordance with the computed message dependency. - receiving a plurality of database commit indications, each database commit indication indicating a change of a database record; - in response to receiving a database commit indication according to the first standard of the plurality of database commit indications, generating a message envelope for each message target to be notified operating according to the first standard and at least one message according to the first standard within each message envelope and generating a message according to the second legacy standard for each message target to be notified operating according to the second legacy standard; - computing message envelope dependencies between generated message envelopes for a same message target operating according to the first standard, the message envelope dependencies defining an order of the message envelopes for the same message target operating according to the first standard; - computing message dependencies between the messages according to the first standard within each message envelope based at least on the standard of the messages of the respective message envelope and functions of the messages, the message dependencies defining an order of the messages according to the first standard within each message envelope; - sending the messages according to the first standard to the respective message target operating according to the first standard in a sequence based on the message envelope dependencies and the message dependencies; - sending the messages according to the second legacy standard to the respective message target operating according to the second legacy standard without computing a message dependency if no other message is pending for the message target concerned, or, if other messages for the message target concerned are pending, computing a message dependency and sending the messages according to the second legacy standard to the respective message target operating according to the second legacy standard in accordance with the computed message dependency.