Uploaded image for project: 'Restheart'
  1. RH-240

serialize write requests at document level via a job queue

    Details

    • Type: New Feature
    • Status: Selected for Development
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.1
    • Fix Version/s: backlog
    • Labels:
      None

      Description

      note: mongodb 4.0 is going to introduce Multi-document Transactions (see https://docs.mongodb.com/manual/upcoming/). This will make request serialization useless since its goal is best addressed via transactions.

      since:

      • mongodb does not handle transactions that spans multiple operations
      • restheart performs few (>1) write operations for a single write request such as a PUT

      in order to avoid ghost writes that might happen when concurrent write request are received we want to add the ?s query parameter (s=serialize). this qparam will serialize the concurrent requests thus avoiding this issue.

      being serialized and not performed concurrently, the write operations will take more to complete, i.e. decreased performances.

      see https://github.com/SoftInstigate/restheart/issues/191

        Attachments

          Activity

            People

            • Assignee:
              andrea Andrea Di Cesare
              Reporter:
              andrea Andrea Di Cesare
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: