我试图理解 Gearman,但直到现在我还无法弄清楚任务和工作之间的区别。
我正在尝试创建一个客户端,它将定期(每 10 分钟)解析一个 XML 页面。哪种方法最好?
最佳答案
手册offers a terrific explanation :
Jobs vs. Tasks
A task is any request or communication between the client and the job server. A task is usually communication about a job. Tasks might be
please run this job
orwhat is the status of this job
. A job is something the worker does, continuously waiting on the job server to tell him when to start and with what arguments. Clients submit jobs and ask for status about jobs (both of those things are considered tasks). Workers actually perform the jobs.
关于php - Gearman 的工作和任务有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16373032/