celix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [celix] abroekhuis commented on issue #185: Add custom serialization service for custom delete functions in RSA
Date Wed, 08 Apr 2020 07:48:21 GMT
abroekhuis commented on issue #185: Add custom serialization service for custom delete functions
in RSA
URL: https://github.com/apache/celix/pull/185#issuecomment-610806752
 
 
   > +1 to supporting fqn+version. However, I can still think of a use case for also supporting
targeting service ids. Suppose a user has a remoted service X with serialization json and
twenty java applications that communicate with X. User wants to move to serialization msgpack.
Not wanting to upgrade all services communicating with service X at once, the user simply
spins up two instances with a different filter (e.g. (service.serialization=json) and (service.serialization=msgpack))
so that upgrading can ben done per java application, instead of having to do twenty at the
same time.
   
   If a list of message types or something is used in the service properties, both could support
the same types, but with service ranking preference to one of the other could be given.
   So in your example:
   JSON has a service property: message.types={ "a", "b", "c"} with a ranking of 10
   MSGPack has a service property: message.types={"a", "c"} with a ranking of 20
   In this case the RSA would still pick up both serializers, and starts at the highest ranking
to find a handler for a message, moving down the list.
   So for msg "a" it would use MSGPack, while for msg "b" it would use JSON.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message