This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes [Part 2] Assumptions for external system Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "[Part 2] Assumptions for external system" Watch "[Part 2] Assumptions for external system" New topic
Author

[Part 2] Assumptions for external system

j man
Greenhorn

Joined: Jul 06, 2012
Posts: 4
Hi
In my assignment I have something like that:

[The "SuD" will use JMS interface to an external system to retrieve the current price of an item..( SuD sends a ItemID and the external system returns the current price.)
The external system is committed to a response time of 1 second..]


I want to start treatment on an item, but only when its price becomes equal to a fixed price (for example 50 $).
I must generating a thousand requests via JMS per second to see when an item's price becomes equal to some value and I think this is too much processing.
Can I change from the solution where I continually ask the service for the price, to a solution where I ask the service to tell me when the price changes and add this in Assumptions ?
(For example: I assume that the external system publish "price changes" in a JMS Topic and my SuD is subscribed in this topic. Even this is not mentioned in the assignment)?

Sunderam Goplalan
Ranch Hand

Joined: Oct 10, 2011
Posts: 73
Your approach looks more sound to me than sending messages to the external system as that requires much more processing from your server side. However, the requirements seem to clearly tell that

"SuD sends an item id and the external system responds with the price".

Would it not mean you are changing the requirements ?

But yes, you CAN make certain assumptions as long as it keeps the business requirements consistent with the assignment.


SCJP 5.0 , SCEA Java EE 5
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: [Part 2] Assumptions for external system
 
Similar Threads
What is an auctioning marketplace?
Doubts regarding external system and view helpers.
[JMS] Condition treatment
part 2