You can minimise latency if you need one replica like this.
Server A receives a message.
Server A persists and replicates the message
Server B receives a copy of the message.
Server B *processes* the message. At this point there has to be a copy on two machines.
Server B writes the response which is replicated to
Server A who replies.
The means there is one RTT latency between servers and no additional protocol.
At least one of our clients does this for real messages under 25 micro-seconds 99% of the time.
Regards, Peter.
--
You received this message because you are subscribed to the Google Groups "Chronicle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicl...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The Backup needs to monitor where the processing engine is up to. If the expected response (as it can see requests / in bound events) takes too long it can stop replication and take over.
Regards, Peter.
--
Chronicle Queue has built in heartbeats to check a connection is working and a connection event listener interface however it wouldn't detect that the engine has locked up for example.
Peter.