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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:26:33+00:00 2026-05-27T00:26:33+00:00

I have an SOA app, and have started to run into some performance issues.

  • 0

I have an SOA app, and have started to run into some performance issues.

I have models coming OUT of REST that look similar to…

public class Person
{
    public Guid Id { get; set; } 
    public string FirstName { get; set; }
    public string LastName { get; set; }
    public Address Address { get; set; }
    public IEnumerable<Hobby> Hobbies { get; set; }
    public IEnumerable<Interests> Interests { get; set; }
    public IEnumerable<Friends> Friends { get; set; }
}

This turns into a pretty large model pretty quickly when it is being returned via REST with all of those fields populated.

So, my basic question is…Is it better to transfer large models such as above, and use FEWER Rest calls, or transfer smaller objects and use more Rest calls to retrieve the other pieces of data. I.E. have a model like this…

public class Person
{
    public Guid Id { get; set; } 
    public string FirstName { get; set; }
    public string LastName { get; set; }
    public AddressId AddressId { get; set; }
    public IEnumerable<Guid> Hobbies { get; set; }
    public IEnumerable<Guid> Interests { get; set; }
    public IEnumerable<Guid> Friends { get; set; }
}

And now go an grab the other properties as needed…

Thoughts?

  • 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-27T00:26:34+00:00Added an answer on May 27, 2026 at 12:26 am

    Personally, I prefer a lighter object be returned. I could elaborate as to why, but this article does a pretty good job of doing it for me:

    http://davybrion.com/blog/2010/05/why-you-shouldnt-expose-your-entities-through-your-services/

    Now, in your case, you can return lists inside of your objects, and then have REST calls that will accept a list of IDs (in your case Guids) and then returns a list of objects, themselves being lightweight. This would give you the best of both worlds – lighter objects and a reduced number of REST calls.

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

Sidebar

Related Questions

I have an app that uses a couple of SOA calls to get some
So we run in an SOA architecture. I have a service that I'm trying
I have a rails app that tracks membership cardholders, and needs to report on
We have a very large GWT project that results in a monolithic app about
In my app I have 3 models: User, Page, Photos Photos belong to a
I have two models Site and User. When a user registers with the app
My c++ SOA app has a concept of session that is used exchange data
I have a semi-large web application that we run locally and I need to
I have a WPF app with a textblock that displays the current time. Said
we have a Silverlight 4 app that prints a multi-page report. When the number

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.