distributed system language choice

Associate
Joined
30 Jun 2003
Posts
2,237
Location
Sussex
i've got to code a distributed app for my distributed system course and i'm torn as to what language to use.

it's HTTP-based and the server replies with xml. the actual communication isn't that hard, it's a booking system that has to be synchronised on two identical apps but with different available slots for example.

the code however is more complex, they have coded it so messages are dropped, delayed or sent in the wrong order. there is also a "race" at one point where they release the 200 "soonest" slots, with the winner being the one that has the soonest slot, identical on both systems.

usually java would be used but being liking php, i'm swaying towards that atm. should it be a web-based or cli based? would java be better or perhaps ruby or something?

ask if it's confusing, i doubt i've explained it that well.

ta, kiwi.
 
I've looked at web-applications in Java, both Java only (using Struts/EJB) and Java server-side code providing services for a non-Java front-end via SOAP messaging.

Both styles of application seem to work well with Java providing classes to make SOAP and HTTP communication fairly straightforward. Java also provides classes to create servlets etc. that accept and respond with HTTP requests (which can contain SOAP messages).

Support for different XML parsers is also good with classes provided to model XML documents, perform XSLT transformations, XPath queries etc.

Unfortunately, I haven't (yet) used PHP or Ruby so can't say how these match up to Java. However, I do think that Java would be suitable for what you want to do.

Hope that helps.

Jim
 
Back
Top Bottom