Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-7420

Hot Rod enhancements for transcoding

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 9.3.0.Beta1, 9.3.0.Final
    • Component/s: None
    • Labels:
      None

      Description

      Several enhancements will need to be made to the Hot Rod protocol to work with transcoding:

      Cache Writes (key + value)

      • Cache write operations that include values should have an optional parameter to be able to define the MIME type of the key and value that is being written. When the optional parameter is sent to the server, it will enable the server to implicitly discover what the types of the key+value are.
      • Once the first cache write has determined the key+value types, the clients do not need to send them again. If the client sends different types for the same cache, it should either result in the server ignoring it or an error (the former is preferable).
      • To avoid sending unnecessary data, advanced clients could cache the key+value type for a given cache after the first write request and then don't send it again.

      Cache reads

      • Any operation that involves retrieving data should optionally take the type that the value should be transcoded to when returning it back to the client. This enables data to be read in different formats.
      • Within these operations, write operations that return previous values should be included.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  gustavonalle Gustavo Fernandes
                  Reporter:
                  galder.zamarreno Galder ZamarreƱo
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: