]
Tristan Tarrant updated ISPN-7420:
----------------------------------
Sprint: Sprint 9.3.0.Beta1 (was: Sprint 9.3.0.Alpha1)
Hot Rod enhancements for transcoding
------------------------------------
Key: ISPN-7420
URL:
https://issues.jboss.org/browse/ISPN-7420
Project: Infinispan
Issue Type: Feature Request
Reporter: Galder ZamarreƱo
Assignee: Gustavo Fernandes
Several enhancements will need to be made to the Hot Rod protocol to work with
transcoding:
h3. 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.
h3. 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.