Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-2092

Pass Messages along with Added mailbox events

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mailbox
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              aduprat Antoine Duprat
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: