问题
I have an application that requires really low latency (real time game). Currently in my solution it takes less than 2 mili sec for a message to route to from the client front end server to the destination server. Does anybody know how much time will it take in google cloud pub/sub to route a message from one server to another? Thank you!
回答1:
While Cloud Pub/Sub's end-to-end latency at the 99.9th percentile is sufficient for many applications--including some using it for real-time interaction, 2ms is lower than what the system can currently promise. We have thus far prioritized high throughput and strong delivery guarantees. End-to-end latency is also highly dependent on the rate at which a subscriber issues pull requests. A subscriber should always have at least a few open pull requests if throughput and/or latency are important. We do aim to significantly reduce out intra-region latencies but at the moment Cloud Pub/Sub cannot guarantee 2ms intra-region latencies at the 99.9th percentile.
来源:https://stackoverflow.com/questions/36183606/whats-google-cloud-pub-sub-latency