0% found this document useful (0 votes)
16 views9 pages

17 Microservice Pattern- Redis as Database

The document outlines the steps to create a local Spring Boot microservice server that communicates with a local Redis server. It includes downloading and running the Redis server, creating a model and DAO class for CRUD operations, setting up endpoints, and configuring Redis in the Spring Boot application. Finally, it mentions testing the microservice using Postman.

Uploaded by

Pratiksh Patel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views9 pages

17 Microservice Pattern- Redis as Database

The document outlines the steps to create a local Spring Boot microservice server that communicates with a local Redis server. It includes downloading and running the Redis server, creating a model and DAO class for CRUD operations, setting up endpoints, and configuring Redis in the Spring Boot application. Finally, it mentions testing the microservice using Postman.

Uploaded by

Pratiksh Patel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Goal: Creating a local spring boot microservice server (running on port 8080) which talks to the

local redis server running on port 5379)

1st we download the local redis server from


ttps://github.com/microsoftarchive/redis/releases/tag/win-3.2.100 and run its execution file in
order to start the local redis server on Port 6379
2nd we create a local spring boot microservice server (running on port 8080) & test it

2.1 created a model class (used @Redishash to store the model object as hash in redis)
2.2 created a dao class for doing crud operations on Redis Server
2.3 created end points to do CRUD on Redis Server
2.4 created RedisConfig.java to add the functionality of redis to spring boot app
2.5 turning on the microservice to make sure it works via postman

You might also like