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.
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.