TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

When to Use gRPC vs. GraphQL

1 pointsby lorendsrover 2 years ago

1 comment

phendrenad2over 2 years ago
I&#x27;m not convinced that GraphQL (which, spoiler, this article puts forth as the winner for client&#x2F;server communication) is a win for most cases, unless you&#x27;re literally at Stack Exchange scale.<p>&gt; In client-server communication, latency is high. We want to be able to get all the data we need in a single round trip, have flexibility in what data we fetch for different views, and have powerful caching<p>You can (mostly) get all 3 of these with REST, if you sacrifice a little flexibility and add some backend filtering. The upside is your stack is simpler than using a GraphQL library and keeping it patched (oh yeah, graphql library security vulnerabilities are a thing, sorry for the nightmare fuel)