[英]appengine TaskQueue count
Since there is no way to know the TaskQueue count programmatically according to AppEngine Taskqueue: is there a way to determine the queue depth?由于无法根据AppEngine Taskqueue 以编程方式知道 TaskQueue 计数:有没有办法确定队列深度? , I am thinking of using the cache to monitor the queue.
,我正在考虑使用缓存来监视队列。 Is it advisable or is it a cardinal sin?
这是可取的还是一个主要的罪过? (I know that cache cannot be 100% reliable, 89% reliable-ness is fine for me)
(我知道缓存不可能 100% 可靠,89% 的可靠性对我来说很好)
Its not a question of reliability, cache can be cleared at any time and then your left with zero.这不是可靠性问题,缓存可以随时清除,然后你的左边为零。 you need to store the count in the datastore.
您需要将计数存储在数据存储区中。
Look into sharding counters for a tutorial on how to have good write throughput on the datastore.查看分片计数器以获取有关如何在数据存储上获得良好写入吞吐量的教程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.