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

Other Useful Business Software
Network Discovery Software | JDisc Discovery Icon
Network Discovery Software | JDisc Discovery

JDisc Discovery supports the IT organizationss of medium-sized businesses and large-scale enterprises.

JDisc Discovery is a comprehensive network inventory and IT asset management solution designed to help organizations gain clear, up-to-date visibility into their IT environment. It automatically scans and maps devices across the network, including servers, workstations, virtual machines, and network hardware, to create a detailed inventory of all connected assets. This includes critical information such as hardware configurations, software installations, patch levels, and relationshipots between devices.
Learn More
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