cshannon commented on PR #1851:
URL: https://github.com/apache/activemq/pull/1851#issuecomment-4148474076

   Ok sounds good, at the very least next week I will create a PR with the AMQP 
fix but it would be good to identify if here's a Stomp area to fix too.
   
   Ultimately something more substantial needs to be done to fix the issue for 
real. I've been thinking about ways to avoid the problem entirely. 
Synchronization on the message types is an option of course, but has 
performance draw backs. Something I want to experiment with would be to have 
immutable versions of the messages.  We already copy all over the place so the 
server could just use immutable copies once they reach the broker internally 
that only store bytes (might even just have one Shared message type) and then 
there's no issue.
   
   The downside is it it would likely require a major version bump and probably 
breaking changes for things like plugins as I'm sure lots of plugins and code 
do mutations like adding headers. You would need easy ways to copy and convert 
between types, maybe shared interfaces etc.  And all the while not wanting to 
break existing clients. I would have to try it to really know the impact but 
it's worth exploring. 


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to