<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/ufjeq0etj" -->

---
title: Performance Benchmarking: gRPC+Protobuf vs. HTTP+JSON
description: The post explores a performance benchmark comparing Protocol Buffers over gRPC and JSON over HTTP/1 and HTTP/2, using Go examples. The test eliminates...
canonical: https://daily.dev/posts/ufjeq0etj
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Performance Benchmarking: gRPC+Protobuf vs. HTTP+JSON | daily.dev
og:description: The post explores a performance benchmark comparing Protocol Buffers over gRPC and JSON over HTTP/1 and HTTP/2, using Go examples. The test eliminates...
og:url: https://daily.dev/posts/ufjeq0etj
og:image: https://api.daily.dev/og/posts/ufJEq0etJ.png
og:image:alt: Post cover image
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Performance Benchmarking: gRPC+Protobuf vs. HTTP+JSON

**[packagemain.tech](https://daily.dev/sources/packagemain)** · [@alexpliutau](https://daily.dev/alexpliutau) · 23 upvotes · 1 comments

## Summary

The post explores a performance benchmark comparing Protocol Buffers over gRPC and JSON over HTTP/1 and HTTP/2, using Go examples. The test eliminates extraneous operations to isolate the impact of data transport and serialization protocols. Findings revealed that HTTP/2 is slower than both gRPC and HTTP/1 in this specific scenario, which challenges common assumptions about the efficiency of newer protocols.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://packagemain.tech/p/protobuf-grpc-vs-json-http>

## Community discussion

Top comments from developers on daily.dev.

**@harrylesnar** · 2 upvotes

> obviously the grpc and protobuf serialization had better performance compared to http and json there is no doubt at all

---

Tags: [#backend](https://daily.dev/tags/backend), [#golang](https://daily.dev/tags/golang), [#microservices](https://daily.dev/tags/microservices), [#grpc](https://daily.dev/tags/grpc)

[View this post on daily.dev](https://daily.dev/posts/ufjeq0etj)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/ufjeq0etj","headline":"Performance Benchmarking: gRPC+Protobuf vs. HTTP+JSON","text":"Shared: Performance Benchmarking: gRPC+Protobuf vs. HTTP+JSON","url":"https://daily.dev/posts/ufjeq0etj","datePublished":"2024-07-22T08:18:49.689Z","dateModified":"2024-07-22T08:18:49.693Z","author":{"@type":"Person","name":"Alex Pliutau","url":"https://daily.dev/alexpliutau","image":"https://lh3.googleusercontent.com/a/ACg8ocLXExzpASLVyFJkZE0dfR0CaUsC2qf8cbhPT71UvOuY1tYMh30epA=s96-c","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":3910}},"image":"https://media.daily.dev/image/upload/s--VDukGCjf--/f_auto/v1722860399/public/Placeholder%2002","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":23},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"sharedContent":{"@type":"WebPage","url":"https://api.daily.dev/r/EGV0DxBmC"},"comment":[{"@type":"Comment","text":"obviously the grpc and protobuf serialization had better performance compared to http and json there is no doubt at all","datePublished":"2024-08-28T12:09:24.244Z","url":"https://daily.dev/posts/ufJEq0etJ#c-oDM3HJlVV","author":{"@type":"Person","name":"Hari Prasath","url":"https://daily.dev/harrylesnar","image":"https://media.daily.dev/image/upload/s--O0TOmw4y--/f_auto/v1715772965/public/noProfile"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/packagemain","name":"packagemain.tech"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"packagemain.tech","item":"https://daily.dev/squads/packagemain"},{"@type":"ListItem","position":3,"name":"Performance Benchmarking: gRPC+Protobuf vs. HTTP+JSON"}]}
```

