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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:45:40+00:00 2026-05-22T02:45:40+00:00

In the past, the systems I’ve worked on have generally used XML to communicate

  • 0

In the past, the systems I’ve worked on have generally used XML to communicate between the client and server and transfer result sets, etc. My current project however simply serializes a list of objects into a binary and sends that across the wire.

We’re now coming to a point where our ‘transfer objects’ (for lack of a better description) could start growing in size due to a bunch of new fields. This, added to the fact that we could in theory have a list of anything up to 100,000 objects sent across, makes me begin to wonder about the relative performance of our current approach vs using XML.

When I say ‘performance’ I consider:

  • Size of objects being sent across the wire, and time taken
  • Time taken to assemble objects ready for transfer
  • Time taken to parse / deserialize on the other side before we display in the UI

My gut feel is that XML could get very verbose, so might need some kind of compression… but I’m not really familiar with how it scales against serialized binaries. Is there a general consensus on what sort of approach is more scalable, or are we getting into the realm of “fit for purpose” here? 🙂

Thanks for any advice.

Cheers,
Dave.

  • 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-22T02:45:41+00:00Added an answer on May 22, 2026 at 2:45 am

    I think, very generally speaking, there is some consensus that XML serialization is rather verbose and not very fast.

    Regarding your binary serialization, since we don’t know the implementation, it is kind of hard to judge. You could of course do some performance comparisons yourself.

    Also, it might be interesting to look at publicly available implementations of binary protocols and see how they perfom against XML.
    Protocol buffers and Thrift come to mind.

    Also check these:
    Performance comparison of Thrift, Protocol Buffers, JSON, EJB, other?

    https://github.com/eishay/jvm-serializers/wiki/

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

Sidebar

Related Questions

I have worked on projects for embedded systems in the past where we have
I have used traditional version control systems to maintain source code repositories on past
I've worked on a number of database systems in the past where moving entries
I have a table in a SQL Server 2005 Database that is used a
Having used Seaside the past few years I've found template systems to be a
I'm using Windows 7. I've used PHPUnit fine on this system in the past.
This past summer I was developing a basic ASP.NET/SQL Server CRUD app, and unit
I've built some shopping cart systems in the past, but I always designed them
In the past, I've seen nearly no difference between CSS in the same browsers
I have VS 2008 Team Systems Suite and I am a one-man shop. 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.