What's the best way to asynchronously handle low-speed consumer (database) in high performance Java application
问题 One EventHandler (DatabaseConsumer) of the Disruptor calls stored procedures in database, which is so slow that it blocks the Disruptor for some time. Since I need the Disruptor keep running without blocking. I am thinking adding an extra queue so that EventHandler could serve as Producer and another new-created thread could serve as Consumer to handle database's work, which could be asynchronous without affecting the Disruptor Here is some constrain: The object that Disruptor passed to the