I am building a cloud trade copier for MetaTrader. When a trader closes a position on the master account, the same close has to go out on every follower account, as fast as possible. For MT4 the vendor library is a .NET DLL with a synchronous API: OrderClose blocks its thread until the broker answers. In my setup that answer takes about 130 ms.
That is fine for one close. It stops being fine when 27 positions close in the same second and each of them has 30 followers.
What I measured
I measure "own time": the time from the master's callback to the moment the follower's order call is made. It excludes the broker's answer, so it is the part my code is responsible for.…