File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes Best solution for my distributed application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Best solution for my distributed application" Watch "Best solution for my distributed application" New topic
Author

Best solution for my distributed application

Allan Sam
Greenhorn

Joined: Dec 05, 2005
Posts: 1
I need to conceive an application which has to get input from a POS terminal or some other server. The application has to communicate with another module residing in a mainframe, get the results and output the response back to the POS terminal. The components with which the application communicates may be non-java components. Please recommend the best architecture for this system. This a performace critical application with the application needing to support 10000+ client hits at a time. Considering these, what technology is best suited? Simple TCP server socket/WebServices/Servlet/CORBA/RMI??
joseph edwards
Greenhorn

Joined: Nov 26, 2005
Posts: 12
The best choice of course will depend on your specific needs.

For instance, will you application require distributed transactions or 2 phase commits? Do you have any security requirements, such as authentication and authorization of services? How will your application handle failures, such as network failures or hardware failures, while tasks are being processed? Is there a specific ordering of tasks that must be synchronized, such as task A must be performed before task B? What are the dependencies between the different clients?

As you can see, you'll need to analyze all the other aspects of the system before determining the ideal architecture. Performance is just one aspect of the design.



Originally posted by Allan Sam:
I need to conceive an application which has to get input from a POS terminal or some other server. The application has to communicate with another module residing in a mainframe, get the results and output the response back to the POS terminal. The components with which the application communicates may be non-java components. Please recommend the best architecture for this system. This a performace critical application with the application needing to support 10000+ client hits at a time. Considering these, what technology is best suited? Simple TCP server socket/WebServices/Servlet/CORBA/RMI??
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
Since all of the technologies you mention build layers onto TCP sockets, dealing at the most primitive level will be fastest for moving data. However, as Joseph pointed out there are many considerations you need to define and work out the consequences.
Try a google search for "premature optimization is the root of all evil."
This is certainly an interesting problem, please keep us up to date on your progress with it.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Best solution for my distributed application