[ https://issues.apache.org/jira/browse/MAILBOX-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14985193#comment-14985193 ]
Tellier Benoit edited comment on MAILBOX-259 at 11/2/15 1:14 PM: ----------------------------------------------------------------- Ok, I get your point. I propose 3 modes : - fully synchronous : like today - fully asynchronous : enabled by people who do not fear it - mixed : the MailboxListener indicates if, by default it wants to be handled as synchronous or asynchonous. Eg : - cache invalidatin and Message Sequence Number handling will be synchronous in mixed mode - Indexation and over costly operations will be done asynchronously in mixed mode Would it seem more safe to you? Because it will significantly speed things up... was (Author: btellier): Ok, I get your point. I propose 3 modes : - fully synchronous : like today - fully asynchronous : enabled by people who do not fear it - mixed : the MailboxListener indicates if, by default it wants to be handled as synchronous or asynchonous. Eg : - cache invalidatin and Message Sequence Number handling will be synchronous in mixed mode - Indexation and over costly operations will be done asynchronously in mixed mode Would it seem more safe to you? Because it will significantly speed things up... > Mailbox Listeners should be asynchronously called. > -------------------------------------------------- > > Key: MAILBOX-259 > URL: https://issues.apache.org/jira/browse/MAILBOX-259 > Project: James Mailbox > Issue Type: Improvement > Reporter: Tellier Benoit > > Event handling by Mailbox Listeners might take time. > For instance indexation, etc... > This time impact latencies. > What I propose is to have a ThreadPool executor dedicated to event handling, > and schedule tasks on it, then return before task completion. > I gonna implement it on top of MAILBOX-211 :-) -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org