Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.3 KB

README.md

File metadata and controls

58 lines (39 loc) · 1.3 KB

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%