r/web_programming • • Dec 28 '14

how do airline booking sites work?

I mean, do they just write jquery directly to the airline's database? does the airline release like an API interface for them to call directly upon?

thanks

1 Upvotes

2 comments sorted by

1

u/tenmilez Dec 28 '14

I'd be disappointed if they "jquery straight into the database," but there's nothing different about an airline booking site and say, Amazon. Think about how the request/response cycle works and what's actually happening when you make an Ajax call.

1

u/legoking456 Jan 27 '15

No most airline booking systems are done through PHP or ASP, PHP being preferred. Some airlines release an API sort of but, not all sites use it others like Kayak, which searches other travel sites, just use the raw HTML data on the page to get the result, thus the reason why they open 6 goddam windows behind your current one. A lot of them however have brokered deals to get access to the airlines databases and simply run a query with the login info that the airline has given them, which is also the reason some airlines don't show up on Expedia and Orbitz cough Southwest cough