When is messaging (e.g. JMS) an alternative for multithreading?

前端 未结 6 2096
北恋
北恋 2021-01-05 15:13

I work on a data processing application in which concurrency is achieved by putting several units of work on a message queue that multiple instances of a message driven bean

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-05 15:39

    There are two additional bonuses that I don't think has been mentioned: Transactions and durability.

    While it isn't required and quite often isn't the default configuration, JMS providers can be configured to persist the messages and also to participate in a XA transaction with little or no code changes.

提交回复
热议问题