[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)?
posted 3 years ago
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.