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 6909817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:44:14+00:00 2026-05-27T08:44:14+00:00

I have a domain model to handle complaints. A number of functionalities need to

  • 0

I have a domain model to handle complaints. A number of functionalities need to be exposed to the outside world, so I can create a publically available WCF REST service to do that. Other functionalities are meant to be used for internal purposes only (admin stuff), so I can create another WCF service which is hosted internally to do that.

The result is that the same domain model is used by two services.

Technically this means that the same class library is used by two deployable units (the services) – so if the class library changes, I have to deploy the two services.

Is this a bad thing, to have a class library that changes a lot be used by more than 1 deployable unit? Should I maybe have the external service use the internal service instead of the domain model, so that the domain model is only used by the internal service?

Just wondering what the best approach would be, making sure that there are no technical issues afterwards (easy maintenance and deployment). Thanks for the advice!

EDIT: I decided to do it as follows: the public service will be exposed as WCF REST + JSON, and will have only the responsibility to transform data into correct format needed by mobile application. This public service uses the internal command service (WCF with full domain) to execute commands and the internal query service (ADO.NET data service) to do queries.

  • 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-05-27T08:44:14+00:00Added an answer on May 27, 2026 at 8:44 am

    Is this a bad thing, to have a class library that changes a lot be used by more than 1 deployable unit?

    It can create management issues, but sometime is is unavoidable, especially for shared libraries. However, when you are dealing with a domain model it is best to limit the number of services which expose the functionality of the model. I like your proposed solution of having the external service reference the internal service. Then the external service provides a sort of facade over the internal service, and the internal service is focused on exposing the functionality of the domain. However, as pointed out by Thomas Jaskula, it is important to evaluate the behavioral aspect of the services. Is the external service exposing a limited set of functions from the internal service or is it providing different functionality all together? What are the bounded contexts?

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

Sidebar

Related Questions

So, I have a nice domain model built. Repositories handle the data access and
I have a form that handles editing of a domain model (A). This domain
Let's say i have a Domain Model that im trying to make compatible with
In Grails 1.3.7, I have a domain model like this: abstract class A {
Quick background: I'm programming in PHP, I have a domain model with a separate
I'm using ruby 1.9.2 and rails 3.2.2. I have a 'domain' model (domain.rb): class
Say I have a nice domain model, using (constructor) DI where needed. Now I
My domain model is this: we have a bunch of schools as the root
I have a class in my domain model root that looks like this: namespace
We have a custom LocalizedString type used in our domain model. We want to

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.