Software Alternatives, Accelerators & Startups

Protocol Buffers VS Jsonnet

Compare Protocol Buffers VS Jsonnet and see what are their differences

Protocol Buffers logo Protocol Buffers

A method for serializing and interchanging structured data.

Jsonnet logo Jsonnet

A powerful DSL for elegant description of JSON data.
  • Protocol Buffers Landing page
    Landing page //
    2023-08-02
  • Jsonnet Landing page
    Landing page //
    2023-05-26

Protocol Buffers videos

Protocol Buffers- A Banked Journey - Christopher Reeves

More videos:

  • Review - justforfunc #30: The Basics of Protocol Buffers
  • Review - Complete Introduction to Protocol Buffers 3 : How are Protocol Buffers used?

Jsonnet videos

Jsonnet

More videos:

  • Review - Using Jsonnet to Package Together Dashboards, Alerts and Exporters - Tom Wilkie
  • Review - Webinar: Writing Less YAML – Using jsonnet and kubecfg to Manage Kubernetes Resources

Category Popularity

0-100% (relative to Protocol Buffers and Jsonnet)
Mobile Apps
34 34%
66% 66
Configuration Management
28 28%
72% 72
Software Development
22 22%
78% 78
Web Servers
54 54%
46% 46

User comments

Share your experience with using Protocol Buffers and Jsonnet. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Based on our record, Jsonnet should be more popular than Protocol Buffers. It has been mentiond 32 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

Protocol Buffers mentions (18)

  • How to Build a Video Call with Gemini Summarization
    You will notice the code above prints out an array of numbers that only mean something to you if you are an all-knowing AI. These numbers are generated using Google's Protocol Buffers (also refered to as protobuf). - Source: dev.to / 3 days ago
  • Demonstrating ArangoDB VelocyPack: A High-Performance Binary Data Format
    The compact nature of VelocyPack also benefits data transmission over networks. Smaller data sizes mean less bandwidth usage and faster transmission times, essential for distributed databases and applications that rely on real-time data. Protocol Buffers (Protobuf) by Google is another binary format with similar advantages; VelocyPack's integration with ArangoDB offers seamless usage within this specific database... - Source: dev.to / 14 days ago
  • Reducing flyxc data usage
    Flyxc messages are based on protocol buffers ("protobuf" if you want to sound cool). They are not human readable but much more compact and faster for computers to work with:. - Source: dev.to / about 1 month ago
  • Did OpenTelemetry deliver on its promise in 2023?
    > Aren’t a standard You mean like an IETF standard? That is true, although the specification is quite simple to implement. It is certainly a de-facto standard, even if it hasn’t been standardized by the IETF or IEEE or ANSI or ECMA. > inherently limits anything built on top of them to not be a standard either I’m not sure that strictly follows. https://datatracker.ietf.org/doc/html/rfc9232 for example directly... - Source: Hacker News / 5 months ago
  • How to Keep a History of MQTT Data With Node.js
    The MQTT protocol is widely used in IoT applications because of its simplicity and ability to connect different data sources to applications using a publish/subscribe model. While many MQTT brokers support persistent sessions and can store message history as long as an MQTT client is not available, there may be cases where data needs to be stored for a longer period. In such cases, it is recommended to use a time... - Source: dev.to / 6 months ago
View more

Jsonnet mentions (32)

  • A Reasonable Configuration Language
    Jsonnet[1] and kapitan[2] are the tools I currently use. Their learning curve is not optimal (and I tried to contribute to smoothen it with a jsonnet course[3] and a 'get started wit kapitan' blog post[4]), but once used to it it's hard to do without, and their combination makes them even more useful (esp. If you deploy K8s). In Ruud's case, Jsonnet might have been worth looking at as Hashicorp tools can be... - Source: Hacker News / 4 months ago
  • Pkl, a Programming Language for Configuration
    Kubernetes config is a decent example. I had ChatGPT generate a representative silly example -- the content doesn't matter so much as the structure: https://gist.github.com/cstrahan/528b00cd5c3a22e3d8f057bb1a75ea61 Now consider 100s (if not 1000s) of such files. I haven't given Pkl an in depth look yet, but I can say that the Industry Standard™ of "simple YAML" + string substitution (with delicate, error prone... - Source: Hacker News / 4 months ago
  • What Is Wrong with TOML?
    Maybe you'd like jsonnet: https://jsonnet.org/ I find it particularly useful for configurations that often have repeated boilerplate, like ansible playbooks or deploying a bunch of "similar-but" services to kubernetes (with https://tanka.dev). Dhall is also quite interesting, with some tradeoffs: https://dhall-lang.org/ A few years ago I did a small comparison by re-implementing one of my simpler ansible... - Source: Hacker News / 9 months ago
  • That people produce HTML with string templates is telling us something
    Apologies for the lack of context, and for missing this comment until today. Both are tools for defining kubernetes manifests (which are YAML) in a reusable manner. Jsonnet is a formally specified extension of JSON. It’s essentially a functional programming language (w/some object oriented features) that generates config files in JSON/YAML/etc, so it’s straightforward to determine whether an input file is valid,... - Source: Hacker News / about 1 year ago
  • TOML: Tom's Obvious Minimal Language
    I like Google's Jsonnet [1], which has all of this except for 4. Jsonnet is quite mature, with fairly wide language adoption, and has the benefit of supporting expressions, including conditionals, arithmetic, as well as being able to define reusable blocks inside function definitions or external files. It's not suitable as a serialization format, but great for config. It's popular in some circles, but I'm sad that... - Source: Hacker News / about 1 year ago
View more

What are some alternatives?

When comparing Protocol Buffers and Jsonnet, you can also consider the following products

TOML - TOML - Tom's Obvious, Minimal Language

Dhall Configuration Language - A non-repetitive alternative to YAML

Messagepack - An efficient binary serialization format.

YAML - YAML 1.2 --- YAML: YAML Ain't Markup Language

Eno - Fast, human readable, plain-text data format

Protobuf - Protocol buffers are a language-neutral, platform-neutral extensible mechanism for serializing structured data.