Message Queue vs Task Queue difference

前端 未结 3 1157
误落风尘
误落风尘 2021-02-01 05:52

I wonder what is the difference between them. Are they describing the same thing?

Is Google App Engine Service Task Queue is an implementation of Message Queue?

3条回答
  •  感情败类
    2021-02-01 06:10

    If you think in terms of browser’s JavaScript runtime environment or Nodejs JavaScript runtime environment, the answer is:

    The difference between the message queue and the micro-task queue (such as Promises is) the micro-task queue has a higher priority than the message queue, which means that Promise task inside the micro-task queue will be executed before the callbacks inside the message queue.

提交回复
热议问题