In a multi-tenant application, for a given domain, is it preferable to use 
a single journal for a given bounded context or is it preferable to split 
out the journals per registered institution. An argument can be made that 
storing it all in one journal is what makes it multi-tenant but an argument 
can also be made that if you service multiple journals in a single vm that 
it is still a multi-tenant application. I'm looking for experiences with 
event sourced multi-tenant applications and the approach others have taken. 
If using a single journal, there exists a possibility that a given 
registered institution may consume a larger share of resources than others 
for example if the journal is being flooded by events from a single 
institution then the throughput of other institutions will be affected. 
There are ways to mitigate this but I'd like to get some input from others 
that have built multi-tenant event sourced applications and the approaches 
they have taken. Given this, the questions I am asking are as follows:

Is it better to use one journal for this scenario or split it out? 

If the preferred method is to use a single journal, does it perform well if 
that journal had multiple event readers (one per institution)reading from 
it assuming that AKKA persistence and persistence query are being used.

Is it better to have one reader of the journal who's sole responsibility is 
to queue up work in separate queues on something like RabbitMQ and have 
separate processes that service a single institution read of off its 
respective queue?

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to