Next: , Previous: , Up: Deploy and Scale a LAMP Application   [Contents][Index]


3.5 Task 3—Connect to an Amazon Lightsail Database

Lesson 7. What Are You Going to Do?

The first iteration of the application’s web front end is not inherently scalable because the database and front end are located on the same machine. It would be problematic to add additional database instances whenever additional front-end capacity was needed.

To fix this issue, the front end and database need to be separated. In this task, you will adjust the configuration for the PHP front end to point to the previously deployed Lightsail database.

Lightsail databases

../img/LAMP-lightsail-db-50

Demonstration Video

The demonstration video Connect to a Lightsail DB will take you step by step through the lab process.