Is there any reference document on how the infrastructure at an exchange works? I know the implementation at different exchanges are different and there is no one size fits all. But is there any general framework as to how exchanges issue order acknowledgements, trade confirmations, perform risk and margin account checks etc?
Edit: Given the comments, I am trying to be more specific. I am looking for literature on how an exchange sends order ack, trade report and the life-cycle of an order and how does an order interact with various elements of exchange infrastructure.