Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 1.36 KB

lab_02.md

File metadata and controls

35 lines (29 loc) · 1.36 KB

VMware Tanzu Gemfire

TGF-Workshop-1

TMC Workshop demonstrating caching and session offloading

Lab 2 - Look-Aside Caching

  • For full instructions on how this application is built, including the @Cacheable annotion required to make this work, visit the following link:

https://docs.pivotal.io/cloud-cache-dev/spring-boot/basic-cache

Build Application

  1. In your terminal window, switch to the following directory:
 cd ../look-aside-cache
  1. Build the application using gradlew
./gradlew build
  1. Edit the manifest file, adding your lastname to the app name, and with the TGF instance you created in the previous section
vi manifest.yml
  1. change the name from bikeincidents-womack to bikeincidents- whatever your last name is
  2. change tgf-womack to tgf- whatever you named your service instance
  3. Push the application
cf push

Verify Application

The TAS output will show where the application is running, for example https://bikeincidents-womack.apps.fowler.cf-app.com. You'll notice that the first time you hit the url and search using a zip code, it takes a bit of time, but once the incident-api data has been cached in TGF, further refreshes will show dramatically increased performance.

Move on to next lab

Lab 3 - Session State Caching