GigaSpaces pet clinic demo
Upcoming SlideShare
Loading in...5
×
 

GigaSpaces pet clinic demo

on

  • 1,924 views

GigaSpaces pet clinic demo ..

GigaSpaces pet clinic demo ..

Statistics

Views

Total Views
1,924
Views on SlideShare
1,686
Embed Views
238

Actions

Likes
1
Downloads
11
Comments
0

9 Embeds 238

http://cloud.gigaspaces.com 106
https://cloud.gigaspaces.com 100
http://cloud-stg.gigaspaces.com 11
http://localhost 8
https://localhost 4
https://cloud-stg.gigaspaces.com 4
http://www.slideshare.net 3
http://www.lmodules.com 1
http://static.slidesharecdn.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    GigaSpaces pet clinic demo GigaSpaces pet clinic demo Presentation Transcript

    • Live Demo Achieving Fault Tolerance in Your JEE/Spring App
    • In this Demo
      • How GigaSpaces XAP guarantees continuous High Availability even under Database Failure
      • Use of a popular standard web application stack
    • Application High Level Architecture
      • GigaSpaces Components:
      • Load balancer agent
      • Web container
      • In-Memory Data Grid
      Database (Commodity, Background) Network Load-Balancer Web Container/ App Server In-Memory Data Grid
      • Data Grid used for:
      • Performance boost
      • Reduction of DB load
      • Isolation of DB failure
    • How to Experience Database Failover?
      • Step 1 – Deploy the demo on the cloud
      • Step 2 – Add some data
      • Step 3 – Experience database failure
      • Step 4 – Witness system healing from data crash
    • STEP 1 – DEPLOY THE DEMO ON THE CLOUD
    • Deploy The Pet Clinic
      • Click Deploy
      • Wait until application status:
      Expected waiting time: ~7 min Deployed
    • STEP 2 – ADD SOME DATA
    • Add a Pet Owner
      • Click View PetClinic (allow pop-ups if necessary)
      • Click Find Owner
      • Click Add Owner Fill in the details of your imaginary pet owner
    • Validate Addition of Pet Owner
      • Click Home Click Find Owner
      • Click Find Owners button
      • Validate the addition of the new pet owner
    • Validate Data Persistency
      • Click Database (follow plug-in instructions)
      • When MySQL opens, type: select * from owners;
      Ensure the new pet owner is listed
    • Step 2 Recap
      • The new pet owner is added to:
        • The In-Memory Data Grid
        • The Database
    • STEP 3 – EXPERIENCE DATABASE FAILURE
    • Database Connection Failure Database (Commodity, Background) Network Load-Balancer Web Container/ App Server In-Memory Data Grid Disconnecting the database does not affect the end-user experience See it for yourself! Instructions are next…
    • Disconnect Database (Simulating Failure)
      • Locate the Database machine
      • Click the Block Network button (located to the right)
      The machine is rebooted and data connections are blocked!
    • Add a Pet Owner
      • Click Home Click Find Owner
      • Click Add Owner Fill in the details of yet another pet owner
      A new owner was added to the IMDG, but NOT to the database! (database is disconnected)
    • Validate Data Availability Despite DB Failure
      • Click Home Click Find Owner
      • Click Find Owners button
      • Validate the addition of the new pet owner
    • Validate Owner Data Was NOT Persisted
      • Make sure 30 seconds have passed since blocking network, to give the database machine time to reboot.
      • Re-open the MySQL window and type: select * from owners;
      Ensure the new pet owner does NOT exist
    • Step 3 Recap
      • Disconnected database
      • Added a new owner
      • Entry was added to the In-Memory Data Grid, but NOT to the database!
      Application runs as usual despite database failure!
    • STEP 4 – WITNESS SYSTEM RECOVERY FROM DATABASE FAILURE
    • Restoring Database Connection Database (Commodity, Background) Network Load-Balancer Web Container/ App Server In-Memory Data Grid Restoring database connection and data persistency is initiated automatically Instructions are next…
    • Restore Database
      • Locate the Database machine. Click the Allow Network button.
      • Wait a few seconds for the database to be updated.
      Allow Network
    • Validate Data Persistency
      • Switch to MySQL and type: select * from owners;
      Ensure the new pet owner is listed
    • What Did this Demonstration Show?
      • A standard web application that maintained availability despite a database failure
      • The application was not affected by either the database failure OR restoration
    • THANK YOU! Download the demo source code to run on your machine: http://www.openspaces.org/display/DAE/GigaSpaces+PetClinic