Skip to content

tatu-at-datastax/quarkus-grpc-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quarkus-based gRPC Service PoC

This repo contains a trivial sample gRPC Service using Quarkus.

Starting the service

Usual Quarkus way:

./mvnw clean quarkus:dev

Accessing service

gRPCurl

You may want to use grpcurl ("grpcurl"); on mac it is installed with

brew install grpcurl

after which you can:

List exposed Services

To see what services are exposed (in "dev" mode; not enabled by default in "prod"), try:

grpcurl -plaintext localhost:9000 list

which should list something like:

grpc.health.v1.Health
vector_service.VectorApi

Access VectorApi

To make actual gRPC call, try:

grpcurl -plaintext -d '{ "contents": "Some stuff" }' localhost:9000 vector_service.VectorApi/Vectorize

which should return something like:

{
  "contents": "Some stuff",
  "tokens": [
    "Some",
    "stuff"
  ],
  "count": 2
}

About

Test repository for generating gRPC service (ideally blocking)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages