What is ActiveMQ used for - can we apply messaging concept using a Database?

前端 未结 8 849
花落未央
花落未央 2021-01-30 00:31

I looked it up and it used to send messages between 2 systems.
But why? Why wouldn\'t you just use a Database?
There must be some feature that ActiveM

8条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-30 01:07

    With RDBMS, when you process a row of data, you typically update a flag indicating that the row has been processed so that the processing is not repeated.

    However, with Message Queue, you only have to acknowledge a message and the next consumer will process the next one.

    The difference is that the UPDATE statment in a RDBMS is a really slow operation compared to the acknowledge in activmeq.

提交回复
热议问题