How to implement batch group message processing in Rebus? - Stack Overflow

The topic of events receives information about changes in different parts of the unit quickly, in thous

The topic of events receives information about changes in different parts of the unit quickly, in thousands per second. I need to create a projection of this aggregate in a database that is updated not on a per-event basis, but once per second. How can Rebus be used to process not every message individually to create an aggregate projection in the database, but to receive about a thousand messages per second and process them all, and only complete their processing after successfully processing all thousands of messages? If an error occurs when processing one of the thousand messages, the entire thousand messages must be considered processed with an error and sent for a second attempt to be processed by the message handlers of the Rebus bus.

So far, I only see an option to run parallel processing of dozens of message streams. Wait for Rebus to run them all. Aggregate them all in memory and send an aggregated message, after which complete the processing of dozens of primary messages. Then repeat this with dozens of aggregated messages. But maybe it can be done better somehow?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744862189a4597770.html

相关推荐

  • How to implement batch group message processing in Rebus? - Stack Overflow

    The topic of events receives information about changes in different parts of the unit quickly, in thous

    1天前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信