The Pet Clinic demonstrates Web-application storing its data within the IMDG and persisting its data in asynchronous manner into mySQL database running on the cloud.
The Deployment will involve the following:
GSM Machine
Load-Balancer Machine
Database and Mirror Machine
GSC Machines - Running Web Application , IMDG and Services
The Demo will show how the web application interacts with the IMDG and how data is loaded from the database once started and later persistent in asynchronous manner into the database.
Click the Pet Clinic button - The system will start provisioning the web application and MySQL database on the cloud.
This will include a machine for managing the cloud, a machine for HTTP load-balancer, machines for the web and data-grid containers and a machine that runs the Mirror Service and MySQL database server.
Check the Database initial state - Access the database machine, and start mysql client. Access the database using: User:pc , Password:pc.
mysql -u pc -p petclinic
Query the database using:
select * from owners;
The database should have 10 owner rows.
Add Some Data into the System - The data will be stored within the IMDG and will be asynchronously persistent into the database via the Mirror Service.
Check the Database - The new data will be inserted into the correct Table
Shutdown the Application - Once you are done, Click the Shutdown Button at the Cloud Console to terminate all the machines running the application on the cloud.
Add Comment