I’m not sure if you are on the right track if you want to save costs, let me elaborate:
If you have 4 bounded contexts and you decide to go multitenant, then you will need a context per tenant, so that’s already 4 contexts per tenant and in the case of 10 tenants that would be 40 contexts.
It is possible to use bounded contexts as before, by defining targetContextResolver
bean, which has higher priority over tenantTargetResolver
. You will also be able to set multiStremableMessageSource
to consume messages from different tenants (contexts), but as you may notice you will now have (in the case of 10 tenants only) 40 contexts communicating between each other and the number of messages might be really high which has implied higher cost on Axon Cloud. This is as Enterprise setup as it gets, although it’s possible to achieve, its a not good road to go if you want to be cost-efficient, and not the best case to deploy on the Cloud, as for such a complex system you might want to control every single aspect of it on your local Axon Server Enterprise cluster.