Uploaded image for project: 'Apache RocketMQ'
  1. Apache RocketMQ
  2. ROCKETMQ-91

Reduce lock granularity for putMessage to get better performance

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 4.1.0-incubating
    • 4.2.0
    • None
    • None

    Description

      CommitLog putMessage has a lock as:
      lockForPutMessage()
      ....
      releasePutMessageLock()

      The logic inside the lock includes two main operations:
      1 encode the message
      2 write to the PageCache.

      However, we can take the first operation(encode message) out from the lock to achieve better performance.

      Attachments

        Issue Links

          Activity

            People

              zander dongeforever
              zander dongeforever
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: