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

  • Home
  • SEARCH
  • 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 726899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:30:17+00:00 2026-05-14T06:30:17+00:00

when is serialization,marshaling etc required during communication between programs residing across 2 different machines

  • 0

when is serialization,marshaling etc required during communication between programs residing across 2 different machines /network/Internet?

Suppose I have a client program in java/flash and a server program in C. Can’t I implement communication using a custom protocol of my own ? I guess so. When is serialization etc needed?I am aware Java RMI,CORBA etc have these mechanisms. But why? Is it a must? please enlighten me?

  • 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-14T06:30:17+00:00Added an answer on May 14, 2026 at 6:30 am

    Can’t I implement communication using
    a custom protocol of my own ? I guess
    so.

    You can. You probably shouldn’t reinvent the wheel. Serialization is tricky. Use a well tested, standard solution for better results. You’ll spend far less time learning an API than writing data passing routines.

    When is serialization etc needed?

    For starters, it’s needed to take some in memory structure from one process to another.

    There are more use cases described here: http://en.wikipedia.org/wiki/Serialization

    I am aware Java RMI,CORBA etc have these mechanisms. But why? Is it a must? please enlighten me?

    None of these “are a must”, like you said, you could write your own protocol. You’re far better of (IMO) leaning on some existing technologies in this area, like XML or one of the others you mention. Which technology you use is really dependent on what you’re trying to do, so I’m not going to speculate 🙂

    One great mechanism for passing serialized data is Google’s protocol buffers. They take care of the encoding (in a much more efficient way than XML) and endian translation.

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

Sidebar

Related Questions

here's a definition of marshaling from Wikipedia: In computer science, marshalling (similar to serialization)
What is the difference between Marshalling and ActiveRecord Serialization? Is there any particular occasion
I came across GSON library for serialization and de serialization and wondering if any
During the serialization we can use either memory stream or file stream. What is
Summary Exception serialization behaviour for [WebMethod] differs between 'all on same server' use and
In serialization mechanism,we are wrote the object into stream using objectinputstream and object outputstream.These
using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; VS says, The type or namespace name 'Formatters' does not
I am using xml serialization and de-serialization to read and write to an XML
I'm going through serialization and I can't understand the following: I don't understand why
There is simple JSON serialization module with name simplejson which easily serializes Python objects

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.