question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implementing Armeria GRPC in Dropwizard?

See original GitHub issue

Hi there!

We have a project built in Dropwizard, and we are switching from using REST with Jersey to use GRPC instead. Dropwizard uses Jetty, so if I could attach GRPC would be great.

In Dropwizards initialize-method, I wrote like this:

@Override
public void initialize(final Bootstrap<QueryServConfiguration> bootstrap) {
      ServerBuilder sb = Server.builder();
      sb.service(
              GrpcService.builder()
              .addService(new HelloService())
              .build()
      );
      sb.serviceUnder("/", new JettyServiceBuilder().build());
}

It builds but I cannot make any requests towards it. Do I have to attach it with a handler, something like this?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:19 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Cronnaycommented, Dec 23, 2019

This is honestly amazing.

We decided to use something else, but it’s great to see that you have implemented it! Will look out Armeria in future. Well done to both of you!

Happy holidays!

1reaction
OneCricketeercommented, Nov 1, 2019

interested in sending a pull request here?

Sure!

module which provides the ArmeriaBundle

It’s in the develop branch for now. I copied the module layout based on the GraphQL bundle

https://github.com/cricket007/dropwizard-armeria/blob/develop/armeria-core/src/main/java/cricket/jmoore/dropwizard/ArmeriaBundle.java

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Armeria with Dropwizard
Path Property Description server maxNumConnections The maximum allowed number of open connections server.ports port The port to run the server on (default: 8080) server.ports ip The...
Read more >
Armeria vs Jersey | What are the differences? - StackShare
Armeria - Build a reactive microservice at your pace. Jersey - A REST framework that provides a JAX-RS implementation . ... gRPC. Dropwizard....
Read more >
Armeria 1.20.3 API reference - javadoc.io
Client-side OAuth 2.0 implementation artifacts. ... An armeria client that uses the gRPC wire protocol. ... Provides a Dropwizard Bundle for Armeria.
Read more >
Working with gRPC - choose between frameworks like Spring ...
Working with gRPC - choose between frameworks like Spring or Dropwizard ... We are looking ahead to implement a pure gRPC server backend...
Read more >
com.linecorp.armeria » armeria-dropwizard ... - Maven Repository
Asynchronous HTTP/2 RPC/REST client/server library built on top of Java 8, Netty, Thrift and gRPC (armeria-dropwizard) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found