- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个 Celery worker 需要部署到 Google 应用引擎,这可能吗?
我打算将一个应用程序用于我的主要 Django 应用程序,一个用于 Celery worker 的应用程序和一个 Rabbitmq 服务(它由 Google 云支持)
最佳答案
我建议使用 App Engine Task Queue 而不是使用 Celery 任务队列。
您可以使用 Push queues :
Push queues run tasks by delivering HTTP requests to App Engine worker services. They dispatch these requests at a reliable, steady rate and guarantee reliable task execution. Because you can control the rate at which tasks are sent from the queue, you can control the workers' scaling behavior and hence your costs.
Pull queues do not dispatch tasks at all. They depend on other worker services to "lease" tasks from the queue on their own initiative. Pull queues give you more power and flexibility over when and where tasks are processed, but they also require you to do more process management. When a task is leased the leasing worker declares a deadline. By the time the deadline arrives the worker must either complete the task and delete it or the Task Queue service will allow another worker to lease it.
关于python - 如何在 Google 应用引擎上部署 Celery Worker,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58875630/
我是一名优秀的程序员,十分优秀!