Giter Site home page Giter Site logo

Comments (6)

ejona86 avatar ejona86 commented on August 15, 2024

Cronet uses the DNS client built into Cronet, so it disables the normal name resolution. Are you needing custom name resolution for Cronet?

from grpc-java.

jchau207 avatar jchau207 commented on August 15, 2024

Cronet uses the DNS client built into Cronet, so it disables the normal name resolution. Are you needing custom name resolution for Cronet?

Yes, we have a custom name resolver that uses cloudflare dns service instead Google's. It is more performant from our testing.

from grpc-java.

ejona86 avatar ejona86 commented on August 15, 2024

The custom name resolver is faster than cronet's, or 1.1.1.1 is faster than 8.8.8.8? I'd expect cronet to be using the device's configured dns server.

Is your app gRPC-only, or does it do any plain HTTP? In mixed apps, there is value in using plain cronet, as you only pay DNS lookup and connection establishment costs once.

Cronet handles TLS and is only given a URL to contact, so it isn't really possible to specify IP addresses from within gRPC. You might take a look at CronetEngine.Builder for some of the options it offers, but I'm not seeing anything off-the-top that looks powerful enough for what you need.

from grpc-java.

jchau207 avatar jchau207 commented on August 15, 2024

We see 1.1.1.1 being faster than 8.8.8.8.

In terms of communicating with our backend, our app is grpc-only.

I noticed there is a DNS option in the documentation, but I can't access it with the coronet engine builder from the grpc package io.grpc:grpc-cronet. Is the coronet builder in io.grpc, a customized builder?

from grpc-java.

ejona86 avatar ejona86 commented on August 15, 2024

but I can't access it with the coronet engine builder from the grpc package io.grpc:grpc-cronet

What documentation? You pass a CronetEngine to the grpc builder, so you are in full control of Cronet's configuration to whatever extent that is possible.

from grpc-java.

ejona86 avatar ejona86 commented on August 15, 2024

Seems like we've answered this as much as we can. All I/O within the scope of Cronet itself. If not and we missed something, comment, and it can be reopened.

from grpc-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.