Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8328879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:34:58+00:00 2026-06-09T01:34:58+00:00

I have two distinct repositories that I will be using simultaneously throughout my app.

  • 0

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).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T01:34:59+00:00Added an answer on June 9, 2026 at 1:34 am

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a clojure/ring project that has two distinct app/handlers running on different ports
We have got two distinct lists of users that we need to power logged
I have two distinct scenarios. One, where there is a many to many case,
I have two distinct modules that can be used independently, but Module2 is dependent
A problem I'm trying to solve: given that you have two distinct strings composed
I have two select queries: SELECT MONTH(date) AS month, count(DISTINCT ip) FROM table_name WHERE
I have two variables, id and date . There are millions of distinct id
I have an application that has two distinct parts, one operation that process data
I have two distinct (unknown relationship) types of input patterns and I need to
I have an application that has two distinct groups of win forms and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.