Skip to content

This repository contains the demonstration of gRPC built by Kotlin.

Notifications You must be signed in to change notification settings

soushin/grpc-kotlin-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grpc-kotlin-test

Overview

This repository contains the demonstration of gRPC built by Kotlin.

demo

Gateway Server

Gateway Server is implemented by using following software.

  • Spring-webflux
  • Spring Boot 2.0.0.BUILD-SNAPSHOT

gRPC Server

Grpc Server is implemented by using following software.

Motivation

I want to try Spring Framework 5.0 and Reactor Programming on Kotlin and to know how to running gRPC Sever on Spring Boot.

How to confirm the demo

At first If protoc do not install, After execute following command then protoc is installed.

(grpc-kotlin-test) $ make deps

Next run both servers.

Gateway Server

(grpc-kotlin-test/client/grpc-client) $ ./gradlew clean generateProto bootRun

gRPC Server

(grpc-kotlin-test/server/grpc-grpc) $ ./gradlew clean generateProto bootRun

then confirm to request to gRPC Server via Gateway Server.

➜  ~ curl -XGET http://localhost:8081/api/echo\?msg\=aaa
{"data":"echo \\aaa/"}%

and also gRPC Server can request via HTTP/1.1.

➜  ~ curl -XGET http://localhost:8080/health_check
true%

About

This repository contains the demonstration of gRPC built by Kotlin.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published