Skip to content

kh77/springboot-redis-pubsub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot - Redis Pub/Sub


  • Create 2 topics in the RedisConfig.java class "employee-topic" , "notification-topic"

Publish message to employee-topic

curl --location --request POST 'localhost:8080/send?message=helloworld'

Publish message to notification-topic

curl --location --request POST 'localhost:8080/notify?message=kazim1'
  • Run redis-cli.exe
  • Enter 'monitor' command
  • See the log on the redis-cli and SpringBoot application

plot

Releases

No releases published

Packages

No packages published

Languages