• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which technology to choose

 
Ronald Heukers
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I have an architectural question about the choice of technology.

Many times in our projects in our company we need to check some serverside constraints from our applications. The information we need to get here is in the data base. That is in our company an obligation from the business architects and we can not change it. Still we have three options to go the a business function,

1. use a call to a webservice,
2. make a synchronous call to a stored function in the database (by JDBC or some persistency software),
3. make an asynchronous call using JMS or Inteconnect

In practice we use now number 2 but when do you use which technology? When do you ideally use webservices, when a stored function, when something like JMS.

Thanks in advance,

Regards,

Ronald
 
Jeremy Hsu
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ronald Heukers:
Hello all,

I have an architectural question about the choice of technology.

Many times in our projects in our company we need to check some serverside constraints from our applications. The information we need to get here is in the data base. That is in our company an obligation from the business architects and we can not change it. Still we have three options to go the a business function,

1. use a call to a webservice,
2. make a synchronous call to a stored function in the database (by JDBC or some persistency software),
3. make an asynchronous call using JMS or Inteconnect

In practice we use now number 2 but when do you use which technology? When do you ideally use webservices, when a stored function, when something like JMS.

Thanks in advance,

Regards,

Ronald


Hi, I will make recommandation from performance point of view.

1) If you want to expose this business methods to the other business partner, then web services is a great way to do it. I do not recommand using webservice just for internal communication because it is slow.

2) and 3)
I will discuss both of these method together. I will use the 3rd approach if the business method is asynchronous in nature. The 2nd approach is what I will be using the most of the time. The 3rd approach will give your client application a faster response time because once you make the asynchronous call, your client can continue executing rest of the instructions. However, if your application requires immediate result of the business method that you invoke using that asynchronous call, this approach maybe not be suitable, and the 2nd approach will be better.

hope this helps
 
Billy Tsai
Ranch Hand
Posts: 1304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use a lightweight J2EE solution
 
Thomas Taeger
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeremy, I totally agree.

Originally posted by Jeremy Hsu:

1) If you want to expose this business methods to the other business partner, then web services is a great way to do it. I do not recommand using webservice just for internal communication because it is slow.

I would even point out that 1) web services should only be used if and only if the directory service (UDDI) functionality is really needed, i.e. to find a service for a published behaviour _in the world wide web_.

The slow and long-winded XML handling in my oppinion is totally overused today. Web Services and XML are good for a bad but simple and ubiquious Facade, not more. To pass around XML behind the Facade is nonsense, except for Enterprise Integration purposes where really no other common data format (like ASN.1 or even Java) can be realized.

Otherwise also I would choose
3) only where needed! - asynchroneous calls for decoupling from long duration calls, request order, priorities, pools, loads, etc. .
2) otherwise and preferably synchroneous calls (incl. using JNDI and handle caching).


Ronald, instead of "Which technology to choose" I would prefere to read a real topic like "WebServices vs. synchroneous vs. asynchroneaus calls" or similar to point out your really interisting topic. Many of the expressionless topics like "a question", "help" etc. just are not read by me.

Thomas.
[ September 14, 2005: Message edited by: Thomas Taeger ]
 
Ronald Heukers
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for the reactions and the advice. I find them useful.

Thomas, I think it is right what you say about the subject title. I will think of that next time. It might give more reactions I think.

Regards,

Ronald
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic