Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

This is a simple app which demonstrates Look-Aside caching pattern and leverages Spring Cloud Connector and Spring Data modules with Pivotal Cloud Cache(PCC).

License

Notifications You must be signed in to change notification settings

vmware-archive/pad-pcc-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VMware has ended active development of this project, this repository will no longer be updated.


## Pivotal Cloud Cache (PCC) Primer App This is a simple app which demonstrates Look-Aside caching pattern and leverages Spring Cloud Connector and Spring Data modules with Pivotal Cloud Cache(PCC) and Pivotal MySQL v2 Tiles.

Please reach out to Pivotal Architecture for Data(PAD) team at pad@pivotal.io for any information

IMG_002

What you will build

You will build a service that requests customer information from a CloudFoundry hosted Customer Search service and caches them in PCC. You will then see that fetching the same customer information again eliminates the expensive call to retrieve customer information from MySQL.

The Customer Search service has the following APIs:

- GET /api/showcache - get all customer info in PCC
- GET /api/clearcache - remove all customer info in PCC
- GET /api/showdb - get all customer info in MySQL
- GET /api/cleardb - remove all customer info in MySQL
- GET /api/loaddb - load 500 customer info into MySQL
- GET /api/customerSearch?email={email} - get specific customer info

What you will need

  • About 30 minutes
  • A favorite text editor or IDE
  • JDK 1.8 or later
  • Maven 3.0+
  • You can also import the code straight into your IDE: Spring Tool Suite (STS) / IntelliJ IDEA

IMG_001

TO DO

  • ADD CQ and Client Subscriptions

About

This is a simple app which demonstrates Look-Aside caching pattern and leverages Spring Cloud Connector and Spring Data modules with Pivotal Cloud Cache(PCC).

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published