ngrinder 压测grpc协议方案

本文档介绍了如何使用ngrinder进行grpc协议的性能测试。首先回顾了grpc的基本概念和操作步骤,包括下载示例、运行gRPC应用、更新服务及客户端。接着详细讲述了编写grpc客户端代码的过程,依赖库的配置,以及创建自定义的gis-client包进行调用。最后,讲解了如何将grpc压测代码集成到ngrinder中,通过上传jar到lib目录并直接在测试脚本中调用。
摘要由CSDN通过智能技术生成

1.grpc的相关知识点,下面先看一遍先

 

Before you begin

Prerequisites

  • JDK: version 7 or higher

Download the example

You’ll need a local copy of the example code to work through this quickstart. Download the example code from our Github repository (the following command clones the entire repository, but you just need the examples for this quickstart and other tutorials):

$ # Clone the repository at the latest release to get the example code:
$ git clone -b v1.13.1 https://github.com/grpc/grpc-java
$ # Navigate to the Java examples:
$ cd grpc-java/examples

Run a gRPC application

From the examples directory:

  1. Compile the client and server

    $ ./gradlew installDist
    
  2. Run the server

    $ ./build/install/examples/bin/hello-world-server
    
  3. In another terminal, run the client

    $ ./build/install/
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值