The demo app showing how to store request payload in Redis using Spring MVC
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
src
.gitignore
.travis.yml
README.md
build.gradle
docker-compose.yml
gradlew
gradlew.bat

README.md

Demo app for the "How to store a request body in Redis" post

Build Status

Blog post

The relevant blog post can be found on our XSolve blog

How to

Run the demo with

docker-compose up

Then, once the application starts, execute a test request:

curl -H "Content-Type: application/json" \\
     -H 'X-MessageSystems-Batch-ID: 123-456' \\
     -d '{"data":"test data"}' localhost:8080/

Next, verify that the request payload has been saved in your redis instance, available under localhost:6379, under the key 123-456. For this purpose, we recommend using the Redis Desktop Manager.

Cleanup

Execute

docker-compose down

Tests

Don't forget to check out the StoreRequestInRedisTest, which can be run with ./gradlew test.