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 [email protected] for any information
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
- 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
- ADD CQ and Client Subscriptions