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: [email protected]
For additional commands, e-mail: [email protected]