I have two distinct repositories that I will be using simultaneously throughout my app.
There will be instances when I need to read from one (REST WS) and then turn around write to another (SQLite DB).
Should this be done in a “domain-service”, or is ok to do within the presentation/application layer?
NOTE: To give some context, I have a separate service-process that fetches new records from a remote WS, and then makes them available to another process by writing to a local DB, which it then in turn loads from.
One process is a service that deals with fetching and updating data between the local and remote DB’s. The other process is the actual app that operates solely off the local DB, and issues requests to the service-process via a request-queue table).
I would probably have one service for the REST reads, one for the SQLite writes, and one (a Facade) that binds them together. The pattern here is the Facade Pattern.