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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:06:47+00:00 2026-05-20T10:06:47+00:00

I come from a mostly n-tier background, and I’m trying to move more towards

  • 0

I come from a mostly n-tier background, and I’m trying to move more towards a DDD architecture. I’m trying to find best practices for designing the application service, and after a few searches, am still left with a few questions. Granted, I know I can’t be the first person to ask these questions, so if you know where these are answered, just point me the way and I’ll happily close this.

Here are my main questions:

  1. How “open” should your signatures be? For example, is it better to be more rigid with your signatures and use simple types as parameters when possible, or is it better to use objects (messages?) that can later be modified without breaking the signature?

  2. If you want to expose variations of a signature, for example, a UserSearch method that returns a list of users based on various (and sometimes optional) search criteria, is it better to:

    A. Use overloads

    B. Use optional (or nullable) parameters

    C. Break each scenario into its own unique method

    D. Use messages

I know that some of these answers are subjective, and also depend on what all will be calling your application service. But I’m just trying to get a general direction of things to consider and other best practices at this point.

Thanks in advance.

  • 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-20T10:06:47+00:00Added an answer on May 20, 2026 at 10:06 am

    Good questions. Thinking about the API is obviously important.

    1) How open would depend for me would depend on who the consumers are. If this application service is only being used within the context of your own solution and/or team then I think it’s fine to have specific messages (or rather their interfaces) or Dtos (data transfer objects). Though if as easy then keeping to simple types is best in my book and definitely better if being consumed by others. If they don’t suffice then interfaced messages that provide only just enough. Again if you are going to be distributed to different platforms then simple messages of simple types is not a bad way to go.

    2) Why not have a SearchCriteria object as a paramater? It could be a SearchCriteria message of simple types if you are looking at this as a start of a messaging bus.

    As you say, your question is a little open but I’d be interested to hear more as it sounds like you are asking the right questions at least.

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

Sidebar

Related Questions

I come from a Java background and am getting more into .NET, what are
I have an ActiveRecord model whose fields mostly come from the database. There are
I come from a C++ background and I've been working with C# for about
I come from a php background and in php, there is an array_size() function
I come from a C# background and I am working on a C++ project.
I come from a .NET background and need to do a web project in
I come from a PHP background and I'm just getting my teeth into some
I am new to programming and come from a non-CS background (no formal degree).
as SQL server support .net well because both come from MSFT. but mostly i
I come from a background of 1 year programing in html/css/javascript/jQuery and 6 months

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.