Meta tags:
description= The Java gRPC implementation. HTTP/2 based RPC. Contribute to grpc/grpc-java development by creating an account on GitHub.;
Headings (most frequently used words):
navigation, code, and, repository, about, files, footer, topics, resources, of, conduct, contributing, security, policy, stars, watchers, forks, grpc, java, an, rpc, library, framework, menu, latest, commit, history, folders, statistics, supported, platforms, getting, started, download, generated, api, stability, how, to, build, high, level, components, releases, used, by, contributors, languages, stub, channel, transport,
Text of the page (most frequently used words):
grpc (64), the (45), and (31), for (26), java (25), protobuf (24), code (17), github (15), android (15), version (15), you (14), #security (14), transport (14), with (14), build (14), testing (13), use (13), based (12), are (12), plugin (11), gradle (11), stub (10), artifactid (10), groupid (10), implementation (9), netty (9), protoc (9), plugins (9), maven (9), proto (8), api (8), all (8), interop (8), repository (7), contributing (7), conduct (7), dependency (7), bazel (7), lite (7), your (7), that (6), readme (6), rpc (6), okhttp (6), layer (6), library (6), com (6), can (5), this (5), not (5), policy (5), license (5), http (5), internal (5), more (5), files (5), see (5), bzl (5), google (5), documentation (5), test (5), support (5), navigation (4), used (4), forks (4), stars (4), client (4), also (4), supported (4), shaded (4), developers (4), compiling (4), non (4), java_grpc_library (4), artifact (4), gen (4), codegen (4), goal (4), services (4), settings (4), run (4), gradlew (4), workspace (4), gcp (4), observability (4), signed (4), copilot (4), docs (3), languages (3), releases (3), custom (3), apache (3), resources (3), about (3), binder (3), process (3), server (3), level (3), core (3), channel (3), auth (3), compiler (3), but (3), may (3), usage (3), experimentalapi (3), apis (3), should (3), projects (3), task (3), integrated (3), system (3), instead (3), add (3), xml (3), examples (3), fixes (3), commit (3), actions (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), reload (3), sign (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), community (2), status (2), footer (2), report (2), watching (2), 501 (2), watchers (2), properties (2), activity (2), microservices (2), topics (2), cross (2), safe (2), main (2), there (2), over (2), using (2), directly (2), requires (2), comes (2), implementations (2), interfaces (2), than (2), package (2), application (2), easy (2), what (2), bindings (2), datamodel (2), idl (2), out (2), other (2), high (2), check (2), annotated (2), users (2), change (2), from (2), example (2), load (2), io_grpc_grpc_java (2), generateprototasks (2), option (2), uses (2), linux (2), alpine (2), exe (2), detected (2), classifier (2), compile (2), executions (2), execution (2), goals (2), configuration (2), pluginartifact (2), pluginid (2), protocartifact (2), extensions (2), extension (2), look (2), src (2), development (2), available (2), scope (2), download (2), branch (2), later (2), items (2), repositories (2), lint (2), bat (2), codecov (2), yml (2), bzlmod (2), releasing (2), notice (2), txt (2), module (2), maintainers (2), governance (2), authors (2), gitignore (2), gitattributes (2), bazelrc (2), bazelignore (2), xds (2), util (2), servlet (2), s2a (2), rls (2), opentelemetry (2), istio (2), inprocess (2), grpclb (2), googleapis (2), csm (2), gae (2), cronet (2), contextstorage (2), context (2), census (2), buildscripts (2), buildsrc (2), bom (2), benchmarks (2), autosharding (2), authz (2), alts (2), gemini (2), last (2), message (2), name (2), 318 (2), commits (2), latest (2), menu (2), must (2), star (2), insights (2), 458 (2), universe (2), training (2), integrations (2), stories (2), center (2), learn (2), business (2), products (2), secret (2), perform, action, time, share, personal, information, manage, cookies, contact, privacy, terms, 2026, inc, contributors, communication, single, device, when, same, frequently, while, being, production, lightweight, forked, low, parts, mainly, okio, officially, generally, preferred, less, management, easier, upgrade, within, many, applications, multiple, does, heavy, lifting, putting, taking, bytes, off, wire, abstract, just, enough, allow, plugging, different, note, considered, has, weaker, guarantees, under, abstraction, handling, suitable, interception, decoration, exposes, behavior, intended, frameworks, address, cutting, concerns, such, logging, monitoring, etc, exposed, most, provides, type, whatever, interface, adapting, protocol, buffers, generates, encouraged, three, distinct, layers, components, making, changes, instructions, how, recommend, usages, any, depends, unintended, consumption, error, prone, checker, subject, future, depend, these, stability, required, project, java_proto_library, proto_library, each, builtins, specify, options, prebuilt, binary, glibc, want, which, musl, motd, org, xolstice, eclipse, netbeans, ide, put, directories, along, appropriate, generated, snapshots, sonatypes, snapshot, either, gavs, above, below, runtimeonly, dependencies, runtime, pom, jars, standalone, showcase, guided, tour, take, explanatory, basics, quick, start, guide, getting, started, older, versions, remains, grfc, jdk, tls, typically, play, dynamic, provider, please, supports, minsdkversion, nougat, language, desugaring, platforms, statistics, googlegroups, mailing, list, homepage, framework, view, date, folders, history, open, file, tags, branches, master, fork, notification, notifications, public, discussions, pull, requests, issues, dismiss, alert, switched, accounts, appearance, search, pricing, event, talks, workshops, next, partners, company, forum, events, webinars, blog, resource, connect, premium, advanced, ons, trust, why, evaluate, industries, government, manufacturing, financial, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, source, improvements, across, one, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, environments, codespaces, analysis, enforcement, automation, ship, coding, agent, tasks, automated, work, hosting, review, collaboration, platform, skip, content,
Text of the page (random words):
github grpc grpc java the java grpc implementation http 2 based rpc github skip to content navigation menu sign in products platform github repository hosting code review and collaboration copilot ai coding agent for tasks projects and automated work build ship actions ci cd and automation code quality quality analysis fixes and enforcement codespaces cloud development environments secure code security vulnerability detection and remediation secret protection secret scanning and leak prevention all features developers learn documentation training certifications build build with copilot customize copilot integrations explore trending repos github sponsors developer articles changelog changelog your source for the latest features improvements and fixes across github products all in one place businesses by stage enterprises team startups nonprofits by industry healthcare financial services manufacturing government see all industries evaluate github why github customer stories business insights trust center add ons github advanced security enterprise grade code security copilot for business enterprise grade ai features premium support enterprise grade 24 7 support resources learn connect documentation resource center blog events webinars community forum customer stories integrations support customer support training github status company about partners changelog github universe github universe the event for developers by developers talks workshops and what s next for github pricing search sign in sign up appearance settings you signed in with another tab or window reload to refresh your session you signed out in another tab or window reload to refresh your session you switched accounts on another tab or window reload to refresh your session dismiss alert message grpc grpc java repository navigation code issues 458 458 pull requests 99 99 discussions actions security and quality insights more items grpc java public notifications you must be signed in to change notification settings fork 4k 4k star 12 1k 12 1k you must be signed in to star a repository about the java grpc implementation http 2 based rpc grpc io docs languages java topics grpc java microservices proto rpc resources readme apache 2 0 license code of conduct code of conduct contributing contributing security policy security policy activity custom properties stars 12 1k stars watchers 501 watching forks 4 0k forks report repository master branches tags go to file code open more actions menu latest commit history 7 318 commits 7 318 commits folders and files name name last commit message last commit date gemini gemini github github all all alts alts android interop testing android interop testing android android api api auth auth authz authz autosharding autosharding benchmarks benchmarks binder binder bom bom buildsrc buildsrc buildscripts buildscripts census census compiler compiler context context contextstorage contextstorage core core cronet cronet documentation documentation examples examples gae interop testing gae interop testing gcp csm observability gcp csm observability gcp observability gcp observability googleapis googleapis gradle gradle grpclb grpclb inprocess inprocess interop testing interop testing istio interop testing istio interop testing netty netty okhttp okhttp opentelemetry opentelemetry protobuf lite protobuf lite protobuf protobuf rls rls s2a s2a services services servlet servlet stub stub testing proto testing proto testing testing util util xds xds bazelignore bazelignore bazelrc bazelrc gitattributes gitattributes gitignore gitignore authors authors build bazel build bazel code of conduct md code of conduct md compiling md compiling md contributing md contributing md governance md governance md license license maintainers md maintainers md module bazel module bazel notice txt notice txt readme md readme md releasing md releasing md security md security md workspace workspace workspace bzlmod workspace bzlmod build gradle build gradle codecov yml codecov yml gradlew gradlew gradlew bat gradlew bat java_grpc_library bzl java_grpc_library bzl lint xml lint xml repositories bzl repositories bzl run test client sh run test client sh run test server sh run test server sh settings gradle settings gradle view all files repository files navigation readme code of conduct contributing apache 2 0 license security more items grpc java an rpc library and framework homepage grpc io mailing list grpc io googlegroups com statistics supported platforms grpc java supports java 8 and later android minsdkversion 24 nougat and later are supported with java 8 language desugaring tls usage on android typically requires play services dynamic security provider please see the security readme older java versions are not directly supported but a branch remains available for fixes and releases see grfc p5 jdk version support policy java version grpc branch 7 1 41 x getting started for a guided tour take a look at the quick start guide or the more explanatory grpc basics the examples and the android example are standalone projects that showcase the usage of grpc download download the jars or for maven with non android add to your pom xml dependency groupid io grpc groupid artifactid grpc netty shaded artifactid version 1 85 0 version scope runtime scope dependency dependency groupid io grpc groupid artifactid grpc protobuf artifactid version 1 85 0 version dependency dependency groupid io grpc groupid artifactid grpc stub artifactid version 1 85 0 version dependency or for gradle with non android add to your dependencies runtimeonly io grpc grpc netty shaded 1 85 0 implementation io grpc grpc protobuf 1 85 0 implementation io grpc grpc stub 1 85 0 for android client use grpc okhttp instead of grpc netty shaded and grpc protobuf lite instead of grpc protobuf implementation io grpc grpc okhttp 1 85 0 implementation io grpc grpc protobuf lite 1 85 0 implementation io grpc grpc stub 1 85 0 for bazel you can either use maven with the gavs from above or use io_grpc_grpc_java api et al see below development snapshots are available in sonatypes s snapshot repository generated code for protobuf based codegen you can put your proto files in the src main proto and src test proto directories along with an appropriate plugin for protobuf based codegen integrated with the maven build system you can use protobuf maven plugin eclipse and netbeans users should also look at os maven plugin s ide documentation build extensions extension groupid kr motd maven groupid artifactid os maven plugin artifactid version 1 7 1 version extension extensions plugins plugin groupid org xolstice maven plugins groupid artifactid protobuf maven plugin artifactid version 0 6 1 version configuration protocartifact com google protobuf protoc 3 25 9 exe os detected classifier protocartifact pluginid grpc java pluginid pluginartifact io grpc protoc gen grpc java 1 85 0 exe os detected classifier pluginartifact configuration executions execution goals goal compile goal goal compile custom goal goals execution executions plugin plugins build for non android protobuf based codegen integrated with the gradle build system you can use protobuf gradle plugin plugins id com google protobuf version 0 9 5 protobuf protoc artifact com google protobuf protoc 3 25 9 plugins grpc artifact io grpc protoc gen grpc java 1 85 0 generateprototasks all plugins grpc the prebuilt protoc gen grpc java binary uses glibc on linux if you are compiling on alpine linux you may want to use the alpine grpc java package which uses musl instead for android protobuf based codegen integrated with the gradle build system also use protobuf gradle plugin but specify the lite options plugins id com google protobuf version 0 9 5 protobuf protoc artifact com google protobuf protoc 3 25 9 plugins grpc artifact io grpc protoc gen grpc java 1 85 0 generateprototasks all each task task builtins java option lite task plugins grpc option lite for bazel use the proto_library and the java_proto_library no load required and load io_grpc_grpc_java java_grpc_library bzl java_grpc_library from this project as in this example build bazel api stability apis annotated with internal are for internal use by the grpc library and should not be used by grpc users apis annotated with experimentalapi are subject to change in future releases and library code that other projects may depend on should not use these apis we recommend using the grpc java api checker an error prone plugin to check for usages of experimentalapi and internal in any library code that depends on grpc it may also be used to check for internal usage or unintended experimentalapi consumption in non library code how to build if you are making changes to grpc java see the compiling instructions high level components at a high level there are three distinct layers to the library stub channel and transport stub the stub layer is what is exposed to most developers and provides type safe bindings to whatever datamodel idl interface you are adapting grpc comes with a plugin to the protocol buffers compiler that generates stub interfaces out of proto files but bindings to other datamodel idl are easy and encouraged channel the channel layer is an abstraction over transport handling that is suitable for interception decoration and exposes more behavior to the application than the stub layer it is intended to be easy for application frameworks to use this layer to address cross cutting concerns such as logging monitoring auth etc transport the transport layer does the heavy lifting of putting and taking bytes off the wire the interfaces to it are abstract just enough to allow plugging in of different implementations note the transport layer api is considered internal to grpc and has weaker api guarantees than the core api under package io grpc grpc comes with multiple transport implementations the netty based http 2 transport is the main transport implementation based on netty it is not officially supported on android there is a grpc netty shaded version of this transport it is generally preferred over using the netty based transport directly as it requires less dependency management and is easier to upgrade within many applications the okhttp based http 2 transport is a lightweight transport based on okio and forked low level parts of okhttp it is mainly for use on android the in process transport is for when a server is in the same process as the client it is used frequently for testing while also being safe for production use the binder transport is for android cross process communication on a single device about the java grpc implementation http 2 based rpc grpc io docs languages java topics grpc java microservices proto rpc resources readme apache 2 0 license code of conduct code of conduct contributing contributing security policy security policy activity custom properties stars 12 1k stars watchers 501 watching forks 4 0k forks report repository releases used by contributors languages footer 2026 github inc footer navigation terms privacy security status community docs contact manage cookies do not share my personal information you can t perform that action at this time
|