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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:39:12+00:00 2026-05-25T11:39:12+00:00

I am working on developing a mobile application using java for messaging services(P2P) I

  • 0

I am working on developing a mobile application using java for messaging services(P2P) I am still in the early stages, and searching about the best and most suitable protocol for such application. As I have found. socket programming is better than web services. as you know it doesn’t need to add extra data (overhead) for the sent message so it will cost lower.

Is there a third option other than sockets & HTTP?

Is socket is the choice what is the best to use TCP or UDP ?!

The question is open for any other options not only the what is mentioned here
and thank you 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-25T11:39:13+00:00Added an answer on May 25, 2026 at 11:39 am

    HTTP and TCP/UDP reside in different layers of the communications systems models (the two most popular being the OSI model and the TCP/IP model). HTTP is built on top of sockets (that’s why there’s additional overhead), so technically – they are not different solutions.

    Using HTTP will give you the advantage of having lots of libraries, documentation and examples to use, while writing your own, custom protocol might take a lot more time and efforts, but would probably be lighter.

    If you opt for raw sockets … I can’t tell you if you should use TCP or UDP – that depends on lots of factors, but the basic difference is that a TCP connection would guarantee a successful delivery if there’s connectivity available or an error message if not, while UDP just sends the data and doesn’t care if it gets there or not (e.g. for streaming live video, there’s no point in ensuring that every bit of data is being transferred, as 1 second later it’s no longer relevant).

    There’s no right or wrong answer – you just need to consider all the factors involved and carefully design the whole process.

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

Sidebar

Related Questions

We are working on developing a Java EE based application. Our application is Java
I am developing an application in java for a mobile platform. The program uses
I'm working on developing a SIP application in Java and wondering what is the
Am working on smartphone application. And Developing through Emulator (USA Windows Mobile 5.0 Pocket
I'm working with C#.net developing applications for windows mobile 6, and i need get
I am working on developing an on-screen keyboard with java. This keyboard has a
I'm working on developing an application that talks to a family of USB sensors.
i have developed a small application and was working fine on developing machine but
I'm working on developing a native android application to retrieve data for a user
I'm currently working on a consumer mobile application project and have read that 40%

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.