I am using axon 2.3.1 with distributed command bus and JGroups config with loadfactor of 1 Along with an interceptor for every command fired. I am doing a littie trick while firing the events and commands just for exploration purpose, i am making thread sleep in the EventHandler after applying the Event
and firing approximately 100 commands , I observed that all 100 commands altogether come on the Interceptor first and then the on the @commandHandler (Aggregate) and are fired one by one.This means that they are somewhere buffered and then sent on the gateway. Otherwise they would have directly sent on the Aggregate after the handling by the interceptor. I wanted to know
1 >Where they are buffered and what is the impact on Heap-memory in JVM if too many commands/events are buffered before firing ?
2>As in the real world scenario any major application can have load of around 10K commands in short span of time if they are made to wait what can be the consequences?
Does anyone have any idea. It would be great to know.