AxonFramework / AxonFramework

Framework for Evolutionary Message-Driven Microservices on the JVM
https://axoniq.io/
Apache License 2.0
3.32k stars 790 forks source link

Reduce the number of property lookups for matching entities #3119

Closed abuijze closed 1 month ago

abuijze commented 1 month ago

This PR adds a cache to the properties that have been discovered in each of the message payloads that an entity has a handler for.

This prevents lookup of properties to occur for each instance of an event that is applied to an aggregate.

With this optimization, a lookup is only required for each new payload type that is being applied.