james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Duprat (JIRA)" <server-...@james.apache.org>
Subject [jira] [Created] (JAMES-2092) Pass Messages along with Added mailbox events
Date Wed, 05 Jul 2017 12:06:00 GMT
Antoine Duprat created JAMES-2092:
-------------------------------------

             Summary: Pass Messages along with Added mailbox events
                 Key: JAMES-2092
                 URL: https://issues.apache.org/jira/browse/JAMES-2092
             Project: James Server
          Issue Type: Bug
          Components: cassandra
            Reporter: Antoine Duprat


Today, James performs a read just after write for retrieving a freshly added message in Cassandra,
and index it in ElasticSearch.

This behaviour is bad:
 - We generate unneeded latencies for Added operation (reading a message should be considered
a long operation)
 - We generate read load on Cassandra on our write path
 - If the read fails and timeout, ElasticSearch is never updated. By having this read, we
maximise chances for failure. As a reminder, if ElasticSearch index is not updated, the message
is not visible in JMAP.

We could pass along messages that were APPENDED, and thus save this costly, dangerous, error-prone
write. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message