Topic: Sequence of events
There is a system of payments. The system sends payment in an external system and periodically the status. There is class Transfer (transfer) with events SenderReject, SenderAccepted, SenderSent, ReceiverRecieved, ReceiverReject, ReceiverAccepted etc the Essence that there is a service which periodically receives on each transfer of event and can be got from the moment of the last check Transfer had time to transit 3 events. That is as a matter of fact Transfer is got goes under the column of events. Also it is necessary to make depending on peak in system. How it to do that many macaroni did not turn out?