Forums Register Login

What's merit and demerit of Socket Connection?

+Pie Number of slices to send: Send
What's merit and demerit of Socket Connection?
thanks
+Pie Number of slices to send: Send
You can drop in an RMI connection fairly transparently, but with agonizingly little control. Implementing a socket connection gives you all the power but a lot more things that might go wrong.
+Pie Number of slices to send: Send
Advantages of sockets:
  • Can be more efficient and scalable than RMI (if good implemented).
  • You have control on how to handle concurrent clients; You can make it simple or complex as your requirements.
  • You don’t have to worry about extra work came with RMI, like registering RMI server, and working with firewalls.


  • Advantages of RMI
  • In Designing, RMI more close to Object oriented than sockets.
  • It is simpler in coding, and you don’t have to worry about thread pooling.



  • You have to choose RMI or a socket, depending on what is best for your project (from your point of view).

    For example being the socket more efficient may not be important since number of users connecting to system is very small.

    So it is not a matter of how many points you can find in favor or against socket, but what is more suitable for your project.
    Enjoy the full beauty of the english language. Embedded in this tiny ad:
    a bit of art, as a gift, the permaculture playing cards
    https://gardener-gift.com


    reply
    reply
    This thread has been viewed 816 times.
    Similar Threads
    ConnectException Connection Refused
    GET\POST
    Question about DynaActionForm
    network
    is server side validation is necessary always?
    More...

    All times above are in ranch (not your local) time.
    The current ranch time is
    Mar 28, 2024 23:52:32.