Twirp is a simple RPC framework built on protobuf. You define a service in a .proto specification file, then Twirp will generate servers and clients for that service. It's your job to fill in the "business logic" that powers the server, and then generated clients can consume your service straight away. Twirp routing and serialization reduces the risk of introducing bugs. Both JSON and Protobuf are supported. The Protobuf protocol is designed to allow backwards compatible changes (unlike JSON, it is trivial to rename fields). Protobuf is super fast and the proto file definition also works well as documentation for your service. Twirp is similar to gRPC, but without the custom HTTP server and transport implementations: it runs on the standard library's extremely-well-tested-and-high-performance net/http Server. It can run on HTTP 1.1, not just http/2, and supports JSON serialization for easy debugging.

Features

  • You get autogenerated clients and a simple, smart framework for passing error messages
  • Twirp follows semantic versioning through git tags
  • Write a Protobuf service definition
  • Generate code
  • Implement the server
  • Mount and run the server

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow Twirp

Twirp Web Site

You Might Also Like
Fully managed relational database service for MySQL, PostgreSQL, and SQL Server Icon
Fully managed relational database service for MySQL, PostgreSQL, and SQL Server

Focus on your application, and leave the database to us

Cloud SQL manages your databases so you don't have to, so your business can run without disruption. It automates all your backups, replication, patches, encryption, and storage capacity increases to give your applications the reliability, scalability, and security they need.
Try for free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Twirp!

Additional Project Details

Programming Language

Go

Related Categories

Go Frameworks, Go JSON Serialization Libraries

Registered

2021-11-26