# Using Java Protocol Buffers in JRuby

DevFeed: [Using Java Protocol Buffers in JRuby](<https://devfeed.tech/articles/using-java-protocol-buffers-in-jruby-15941.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/using-java-protocol-buffers-in-jruby>)

Author: Square Engineering

Published: 2013-06-27T07:00:00Z

Content type: tutorial

Language: en

Sources: [Square Corner Blog RSS Feed](<https://devfeed.tech/sources/square-corner-blog-rss-feed.md>)

Topics: [Protocol (disambiguation)](<https://devfeed.tech/topics/protocol.md>), [Java](<https://devfeed.tech/topics/java.md>), [Ruby](<https://devfeed.tech/topics/ruby.md>), [Remote Procedure Call (RPC)](<https://devfeed.tech/topics/rpc.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [java](<https://devfeed.tech/tags/java.md>), [protocol](<https://devfeed.tech/tags/protocol.md>), [rpc](<https://devfeed.tech/tags/rpc.md>), [ruby](<https://devfeed.tech/tags/ruby.md>)

## AI overview

This tutorial explains how Square uses Java-backed Protocol Buffers in JRuby for communication between services. It describes compiling Java classes, integrating them with JRuby, and using a helper to make Protocol Buffer data easier to construct from Ruby hashes.

## Source excerpt

Square communicates between services using Protocol Buffers. These binary formats are great for documenting API's, small on the wire, and with a little work, easy to use.