开发者

Using both memcached and taskqueue on the google app engine

开发者 https://www.devze.com 2023-02-15 17:47 出处:网络
I am trying to achieve the above on the google apps engine, and was wondering if anyone knows of a project that this has already been done? or an example?

Using both memcached and taskqueue on the google app engine

I am trying to achieve the above on the google apps engine, and was wondering if anyone knows of a project that this has already been done? or an example?

So far in my implementation I can write a single object to memory. However, I am having issu开发者_Go百科es in using add_multi to input multiple objects.

Thanks for any help.


It looks like you're describing a write-behind cache. You should bear in mind that data can be evicted from memcache at any time, so there could easily be a window in which submitted data is not available, as it's been evicted from memcache and not yet written to the datastore. You should also be aware that there's a limit on taskqueue payloads of 10k. Given the relatively low overhead of writing a single entity to the datastore, this is probably far simpler and more reliable than implementing a write-behind cache.

If you're having specific trouble implementing this, you need to give us more details as to what problems you have before we can help.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号