Your SlideShare is downloading. ×
0
GigaSpaces pet clinic demo
GigaSpaces pet clinic demo
GigaSpaces pet clinic demo
GigaSpaces pet clinic demo
GigaSpaces pet clinic demo
GigaSpaces pet clinic demo
GigaSpaces pet clinic demo
GigaSpaces pet clinic demo
GigaSpaces pet clinic demo
GigaSpaces pet clinic demo
GigaSpaces pet clinic demo
GigaSpaces pet clinic demo
GigaSpaces pet clinic demo
GigaSpaces pet clinic demo
GigaSpaces pet clinic demo
GigaSpaces pet clinic demo
GigaSpaces pet clinic demo
GigaSpaces pet clinic demo
GigaSpaces pet clinic demo
GigaSpaces pet clinic demo
GigaSpaces pet clinic demo
GigaSpaces pet clinic demo
GigaSpaces pet clinic demo
GigaSpaces pet clinic demo
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

GigaSpaces pet clinic demo

1,258

Published on

GigaSpaces pet clinic demo ..

GigaSpaces pet clinic demo ..

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,258
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
12
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Live Demo Achieving Fault Tolerance in Your JEE/Spring App
  • 2. In this Demo
    • How GigaSpaces XAP guarantees continuous High Availability even under Database Failure
    • Use of a popular standard web application stack
  • 3. 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
  • 4. 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
  • 5. STEP 1 – DEPLOY THE DEMO ON THE CLOUD
  • 6. Deploy The Pet Clinic
    • Click Deploy
    • Wait until application status:
    Expected waiting time: ~7 min Deployed
  • 7. STEP 2 – ADD SOME DATA
  • 8. 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
  • 9. Validate Addition of Pet Owner
    • Click Home Click Find Owner
    • Click Find Owners button
    • Validate the addition of the new pet owner
  • 10. Validate Data Persistency
    • Click Database (follow plug-in instructions)
    • When MySQL opens, type: select * from owners;
    Ensure the new pet owner is listed
  • 11. Step 2 Recap
    • The new pet owner is added to:
      • The In-Memory Data Grid
      • The Database
  • 12. STEP 3 – EXPERIENCE DATABASE FAILURE
  • 13. 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…
  • 14. 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!
  • 15. 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)
  • 16. Validate Data Availability Despite DB Failure
    • Click Home Click Find Owner
    • Click Find Owners button
    • Validate the addition of the new pet owner
  • 17. 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
  • 18. 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!
  • 19. STEP 4 – WITNESS SYSTEM RECOVERY FROM DATABASE FAILURE
  • 20. 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…
  • 21. Restore Database
    • Locate the Database machine. Click the Allow Network button.
    • Wait a few seconds for the database to be updated.
    Allow Network
  • 22. Validate Data Persistency
    • Switch to MySQL and type: select * from owners;
    Ensure the new pet owner is listed
  • 23. 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
  • 24. THANK YOU! Download the demo source code to run on your machine: http://www.openspaces.org/display/DAE/GigaSpaces+PetClinic

×