Lets say I have 2 bounded contexts A and B. Bounded context A is interested in some events from bounded context B.
I can't decide whether the event listeners should be in the application or infrastructure layer.
The application layer is where integration happens such as bounded context A doing a remote procedure call to bounded context B so this makes me want to put the listeners in the application layer.
The thing that makes me want to put the listeners in the infrastructure layer is that the events are arriving into the application through a message broker which is external to my application.
Any ideas?