Wiki: Conjure: simple, polyglot RPC

For agents: Markdown version · Wiki index · Explore

Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

Summary

The speaker shares the journey of developing a custom, polyglot Remote Procedure Call (RPC) system called Conjure to handle communication across hundreds of microservices. Facing limitations and excessive flexibility in existing technologies like Jax RS and Swagger, the team built a lightweight, backwards-compatible, and language-independent solution. The talk explores Conjure’s architecture, code generation capabilities, and how simplicity enables powerful features like self-hosting and seamless protocol bridges. Ultimately, the audience learns that while building a custom RPC system sounds daunting, prioritizing simplicity and consistency can yield massive organizational benefits.

Key points

  • 0:09 The speaker introduces Conjure, a custom polyglot RPC system built to solve growing architectural challenges.
  • 9:18 Existing alternatives like Jax RS and Swagger were too flexible and complex, while gRPC did not exist at the time.
  • 10:18 Conjure was created to be simple, platform-independent, and backwards-compatible with existing HTTP JSON endpoints.
  • 11:20 The architecture relies on a central API definition that uses code generators to output native code for different languages.
  • 14:31 Integration into standard build tools like Gradle ensures developers can adopt the system with zero friction.
  • 18:41 Owning the RPC system enables advanced capabilities, such as self-hosting the compiler and writing backward-compatibility checkers.
  • 19:52 Simplicity allows for creating translation bridges that can help migrate services to other protocols like gRPC effortlessly.
  • 19:52 The core takeaways from the journey are that simplicity beats expressiveness, and consistency is crucial for RPC.

Takeaways

  • Prioritize simplicity over feature richness when designing internal developer tools to drive adoption.
  • Enforce consistency across your RPC layer because it acts as the primary glue binding microservices together.
  • Building custom infrastructure can be a pragmatic choice if existing tools fail to meet specific organizational constraints.

Questions this talk answers

  • When does it make sense to build a custom RPC system instead of using established open-source alternatives?
  • How do you maintain backward compatibility when evolving a multi-language API specification?
  • What strategies can be used to seamlessly migrate microservices from a custom RPC protocol to gRPC?

Technologies

Java, TypeScript, gRPC, Thrift, Swagger, Gradle, HTTP

Tags

api design, architecture, code generation, developer experience, microservices, rpc