TMC Workshop demonstrating caching and session offloading
- 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
- In your terminal window, switch to the following directory:
cd ../look-aside-cache
- Build the application using gradlew
./gradlew build
- 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
- change the name from
bikeincidents-womack
to bikeincidents- whatever your last name is - change
tgf-womack
to tgf- whatever you named your service instance - Push the application
cf push
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.