简体   繁体   中英

Web Service or Jms

Currently I am responsible for a service: To make a Http Get call on remote server to recharge the mobile which uses asp (plain asp without .net). URL looks like recharge.asp?param=provide Ai amount 100 Num 9999999
Server takes about 10 sec to recharge the mobile and then send the response. Since the client application uses Java EE technology what is best suited Java EE technology for this scenario (Web service, JMS etc )? What about synchronous and asynchronous request?

Since two different technologies are concerned I would suggest going for webservice, as it uses industry standards and not Java standards,

Since this is transactional in nature, message should be synchronous, as users in general are more convenient waiting rather than being notified later about success or failure, had the wait period long then it could have been a different story, but in general 10 seconds is acceptable.

If your capacity planning suggests that 10 seconds wait will put server under extreme load, please take asynchronous approach while ensuring that user is notified about success or failure.

WS Architecture

Transaction In WS

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM