Good Morning,
I'm building an ASP.NET MVC3 event ticketing site that relies on 4 separate web services from Razorgator, StubHub, TicketsNow and one other. The site owner wants to limit the events for which tickets are sold. Therefore, a search function is built into the site w开发者_JS百科herein the site's database returns events meeting search criteria. The task now is to make the call to each of the 4 ticketing web services to retrieve ticket availability, seating and pricing.
Question: How do I specify parameters such as the event ID in my web service call? Is it best to grab the ticket agency's entire catalog, save it to a database table, and do the search from there? (assuming regular updates of ticket data) Or, should I request the entire catalog of tickets and do the event ID matching after the request is made?
Thanks much for your suggestions.
Not sure how you think this, but:
- Don't ever transfer large amount of data.
- Perform critical (resource consuming tasks) as centralized as possible. For example, give as much work as possible to SQL Server and get from the database only the data you are interested in.
- Keep the role of each webservice intact. Each one should do it's own job, don't mix business logic between them.
- Remember, each call to webservice need XML serialization/deserialization = time (processor power) + space (memory).
精彩评论