How are the events loaded in Application from AxonServer when both are running in seperate nodes

Hello Team,

Application and AxonServer are running in seperate nodes and to get the latest state of the aggregate we perform the RepositoryRef.load(aggId) to get the latest aggregate and get the state of the latest aggregate and on that basis we perform the next steps.

Here when RepositoryRef.load(aggId) is called every time, is the call made to the AxonServer to get the events until snapshot or are they loaded from cache, present in the Application JVM, by default ?


Kartik

Hi @mnkartik,

This is always loaded from Axon Server as your Event Store is your only source of truth!
You can configure Cache on the Aggregate loading mechanism but I won’t go that route if you don’t need to!

KR,

Thank you @lfgcampos