If I sync two iOS devices via a sync gateway on the local network the latency is quite low to transfer a document between them, certain less than a second, but if I am watching a changes feed using the rest api and add a document, also using the rest api, then it takes roughly four seconds to appear in the changes.
Why is this?
I want to use a changes feed a bit like a message queue for dispatching events but this is just too slow. I would like to avoid setting up a parallel service if possible. Is there anything I do anything to reduce this latency?