undefined## Application Context ID must be unique {#application-context-id-must-be-unique}
The bus tries to eliminate processing an event twice, once from the original ApplicationEvent
and once from the queue. To do this, it checks the sending application context id againts the current application context id. If multiple instances of a service have the same application context id, events will not be processed. Running on a local machine, each service will be on a different port and that will be part of the application context id. Cloud Foundry supplies an index to differentiate. To ensure that the application context id is the unique, set spring.application.index
to something unique for each instance of a service. For example, in lattice, set spring.application.index=${INSTANCE_INDEX}
in application.properties (or bootstrap.properties if using configserver).