File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "[Part 2] Assumptions for external system" Watch "[Part 2] Assumptions for external system" New topic

[Part 2] Assumptions for external system

j man

Joined: Jul 06, 2012
Posts: 4
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: 86
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, TOGAF Certified
I agree. Here's the link:
subject: [Part 2] Assumptions for external system
It's not a secret anymore!