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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T01:30:52+00:00 2026-05-13T01:30:52+00:00

I want to make connection between two parts of my program which can be

  • 0

I want to make connection between two parts of my program which can be located in departed places.
I have some choices for making this connection:

  1. using PRC/RMI: in every request a calling method will send to second part
  2. using normal function call
  3. using queue(in memory):every request will be placed in a queue and second part will get that and answer requests
  4. using queue(in DB):like number 3 but in DB
  5. using socket for sending data(TCP/IP or UDP or …)
  6. using web service

can anyone compare these available ways?

  • 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-13T01:30:52+00:00Added an answer on May 13, 2026 at 1:30 am

    Here are my thoughts:

    1. RPC/RMI – Requires the RMI/IIOP protocol over the wire, which limits you to using Java for both the client and the server.
    2. Normal function call means both objects are resident in the same JVM and cannot be distributed. This will be the fastest option for a single method call. Reusing that object means having to package it in a JAR and redistribute it to all the other apps that need it. Now you’ve got to know where all those JARs are if the code changes. Distribution is an issue.
    3. Asynchronous processing, but you’ll have to write all the queue and handling code. This would take strong multi-threading skills. Could be very fastest of all, because it’s all in memory and would allow parallel processing if you had multiple cores. It’s also the most dangerous, because you have to be thread-safe.
    4. Don’t understand why you’d have the queue in a database. I’d prefer a Java EE app server for doing this. Not all RDBMS have queues running inside them. If you agree and go with JMS, this will be asynchronous and distributed and robust. It’ll allow topics or queues, which can be flexible. But it’ll be slower than the others.
    5. Using a socket is just like RMI, except you have to write the entire protocol. Lots of work.
    6. A web service will be similar to RMI in performance. But it’ll use HTTP as the protocol, which means that any client that can formulate an HTTP request can call it. REST or SOAP will give you flexibility about message choices (e.g., XML, JSON, etc.)

    Synchronous calls mean the caller and callee are directly coupled. The interface has to be kept constant.

    Asynchronous calls mean looser coupling between the caller and callee. Like the synchronous case, the messages have to be relatively stable.

    UPDATE: The picture you added makes the problem murkier. The interaction with 3rd party merchant and card handlers makes your error situation dicier. What happens if one of those fails? What if either one is unavailable? If the bank fails, how do you communicate that back to the 3rd parties? Very complicated, indeed. You’ll have bigger problems than just choosing between RMI and web services.

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

Sidebar

Related Questions

I want to make connection between two devices over WiFi using GameKit. Apple's documentation
I have a many-to-many relationship between two entities - Media and MediaCollection. I want
I want to set-up a peer to peer connection between some computers, so users
I want to make relationship between my Facebook Page & my website. I have
I want to make an FTP connection (ideally using Coldfusion 8, but Java is
I want make a bash script which returns the position of an element from
I want make interactive application where user launches it and can do various task
Let's say I want make some of my sources publicly available via my blog
I have style sheet with a class name changebackgroundcolor i want make change in
I have link for example domain.com/de/controler/action?param=value and I want make actionlink to keep same

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.