Using Custom Resources (CRs) as Persistence Layer for applications in Kubernetes
We have been working on an open source project which runs on K8s cluster. We had a need to persist some data, …
Evans CLI is a command-line tool designed to facilitate interaction with Go gRPC services. It offers a range of features that simplify the testing and debugging of gRPC services. Here are some of the advantages of using Evans CLI:
Evans CLI stands out from other tools for interacting with gRPC services due to the following advantages:
Ease of use: Evans CLI provides a simple command-line interface, making it incredibly user-friendly. It allows you to effortlessly send requests and receive responses from gRPC services.
Powerful features: Evans CLI boasts several powerful features that streamline the testing and debugging process. These features include automatic service discovery, an interactive mode, and code generation capabilities.
Open source: Evans CLI is an open-source tool, which means it is free to use and modify. This makes it a flexible and cost-effective choice for developers.
To install Evans CLI, follow these steps:
Prerequisites:
Install Evans CLI by referring to the official documentation: https://github.com/ktr0731/evans#installation . The documentation provides detailed instructions on how to download and install Evans CLI.
For the purpose of demonstrating the usage of Evans CLI, let’s consider a sample gRPC server that implements CRUD (Create, Read, Update, Delete) operations based on an office protocol file.
You can find the source code for this sample project here .
Evans CLI addresses client-side issues for the gRPC server through its REPL (Read-Eval-Print Loop) mode and CLI (Command Line Interface) mode. In this example, we will focus on the REPL mode, as it offers a more user-friendly way to interact with the server.
To start the Evans CLI client in REPL mode, execute the following command in the root directory of your project:
evans -r repl -p <your-gRPC-server-port>
Here are some useful commands you can utilize with Evans CLI:
show package
package <Package_Name>
For example:
package gen
show service
service <Service_Name>
For example:
service OfficeService
show message
desc <Message_Name>
For example:
desc Office
available in the services, use the command:
show rpc
call <rpc-method-name>
For example:
call CreateOffice
Evans CLI is a powerful tool that simplifies the testing and debugging of Go gRPC services. With its easy-to-use interface, rich set of features, and open-source nature, Evans CLI provides developers with an efficient way to interact with gRPC servers.
By installing Evans CLI and utilizing its REPL mode, developers can seamlessly explore, inspect, and test the different APIs exposed by their gRPC servers. This interactive approach enhances the development workflow, improves efficiency, and boosts confidence in the reliability of gRPC-based systems.
Embrace Evans CLI as your go-to tool for testing and debugging Go gRPC services, and experience the benefits of its simplicity, power, and open-source nature. Happy coding!
We have been working on an open source project which runs on K8s cluster. We had a need to persist some data, …
We recently launched a new open source project for cloud native ecosystem & first of its kind! Give us a …
gRPC is an open-source, high-performance framework for developing remote procedure call (RPC) applications. …
Finding the right talent is pain. More so, keeping up with concepts, culture, technology and tools. We all have been there. Our AI-based automated solutions helps eliminate these issues, making your teams lives easy.
Contact Us