Skip to content

The demo app showing how to store request payload in Redis using Spring MVC

Notifications You must be signed in to change notification settings

boldare/redis-with-spring-mvc

Repository files navigation

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.

About

The demo app showing how to store request payload in Redis using Spring MVC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages