I have an Accounts application that manages core business logic. There is an Organization model in the Accounts application that represents a single instance of a real world client.
I’m now working on a Billing application, but I want it to be on a separate node. The Billing application will need to know the Organization’s name and its ID, but nothing else.
What is the “right way” to get the Organization information from the Accounts application to use it in the Billing application?
Should the billing application subscribe to Organization events on a bus and create its own instance of an Organization?
Or should I use
:rpc to query the Organization data on the node that’s running the Accounts application?
Or something else?