XMLWordPrintableJSON

Details

    Description

      Remarks: I originally wanted to put the improvement items on cwiki to create an RFC for discussion. I found that I could not create it during the operation. I am not sure what the reason is. so create it on Jira first, then discuss, and then implement it.

       

      To summarize the recent analysis of the implementation of TubeMQ RPC, I think we need to adjust the following content of TubeMQ RPC to make the system more powerful:

      1. The header of each RPC packet should consist of the length of the entire packet, not the number of multiple lists. It can be used to identify illegal packets and allocate memory resources in advance;

      2. The error code and error information should be carried in the exception messages, instead of the original exception classes;

      3. The structure of the response message of this method needs to be improved, the success field should be deleted, and errors should be distinguished by unique error codes. Use clear error codes to clearly mark specific error details so that SDK users can get the exact cause of the error and find clear error handling suggestions based on the documentation;

      4. Each method in RPC should carry version information, so that different versions can correspond to different decoding schemes

      5. If the subsequent RPC still uses PB for coding and decoding, you need to use maven-shade-plugin to cover PB and Netty. Otherwise, the jar package released can easily form a version conflict with the corresponding dependency package of the business

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gosonzhang Guocheng Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m