• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

[Part 2] Assumptions for external system

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)?

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
Time is the best teacher, but unfortunately, it kills all of its students - Robin Williams. tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic