Skip to content

ilterpehlivan/rsocket-rpc-spring-boot-sample

Repository files navigation

rsocket-rpc-spring-boot-sample

sample spring boot project for rpc communication

How to run apps

With Idea

  1. Build
gradle clean build
  1. Start the docker compose for other services (zipkin,prometheus,grafana)
docker-compose -f <docker-compose-external-yml-in-repo> up -d
  1. start server ( right click main class and run)
  2. start client (right click client main class and run)
  3. test it with curl
curl localhost:8082/sample/hello

⚠️ You need to set active spring profile from the IDEA as -Dspring.profiles.active=local

With docker build

  1. Build and generate docker images
 GPR_API_KEY=$GIT_REPO_TOKEN gradle clean build jibDockerBuild
  1. run docker-compose all in one
docker-compose -f <docker-compose-yml-in-repo> up -d
  1. test it with curl
curl localhost:8080/sample/hello

API Operations

API RPC Mapping
/sample/hello RequestReply
/sample/hello-stream RequestStream

Monitoring apps

About

sample spring boot project for rpc communication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages