This week's book giveaway is in the JDBC and Relational Databases forum.
We're giving away four copies of Murach's MySQL and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Prepeare Itinerary - a question

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

When user performs a search for flights, I want to get the regular flights + alternative flights + and all of their prices in a single call, and save these lists in business tier. However, I would return only regular flights to UI. For next call when user select a departure and return flight, I can just get the prices and alternative flights from the business tier itself.

I would appreciate if someone can answer these questions related the above approach.

1) Is there any problem with this approach?
2) Does this kind of design violate use case? I ask this because as per use case this would involve 2 differt user actions.

Thanks,
Satheesh
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What do you mean by storing in business tier?
I would suggest to have an API that takes the date, time, source, destination as input and return the flight sequences. Alternative sequence can be obtained just by changing the time and keeping the remaining as they are.

Suman
SCEA-1
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic