The challenge
Migrate booking data to AWS, and make sure a website visited from all over the world responds correctly, even under very heavy traffic.
Three areas
Data quality on AWS
Securing the integrity of the migrated data estate: compliance of tables and datasets on AWS.
Front-end testing
The public booking site for hotels and merchandise: a flawless journey despite massive traffic.
Back-end API testing
Validating booking flows at API level, first manually in Postman, then automated.
The prediction matrix
On the back end, data scientists used machine learning to generate a CSV predicting the API response for every booking combination.
The breakthrough
In Postman, a test meant sending the inputs in a request, then checking the outputs were right for a given scenario. Impossible to scale.
- Each row of the CSV holds the inputs and expected outputs of one scenario.
- My Python script sends the inputs to the API.
- It compares the API response with the outputs in the matrix.
- It loops through the whole file, scenario after scenario.
I proposed and built this custom framework: it validated the robustness of the APIs under load.
Before, after
Test examples
Four concrete situations: what I do and what I check.
Table compliance
- What I do
- SQL checks on Snowflake with Soda SQL.
- What I check
- Duplicates, primary keys, NULL values, date consistency, email formats.
Booking journey
- What I do
- Front-end tests on the hotel and merchandise site.
- What I check
- A flawless user journey despite heavy traffic.
An API scenario
- What I do
- I send a combination of booking parameters.
- What I check
- That room availability and the products displayed match the row in the matrix.
Regression alert
- What I do
- I monitor the AWS migration with Soda SQL.
- What I check
- Pipeline health and consistency between source and target.
The toolkit
Tools used on this project.