简体   繁体   English

如何负载测试异步管道?

[英]How to load test an asynchronous pipeline?

I have the following pipeline in AWS我在 AWS 中有以下管道

API-Gateway -> Lambda -> Kafka(Amazon MSK) -> Consumers

I need to load test the entire pipeline and each component in the pipeline (to identify bottlenecks)我需要对整个管道和管道中的每个组件进行负载测试(以识别瓶颈)

I don't have any prior experience in load testing.我之前没有任何负载测试经验。 So, didn't know where to start.所以,不知道从哪里开始。 Some blogs mentioned JMeter can be used to do the load testing.一些博客提到JMeter可以用来做负载测试。 But later got to know that the pipeline is asynchronous and it can't be done using JMeter .但是后来才知道pipeline是异步的,用JMeter是不行的。

How can I load test the pipeline?如何对管道进行负载测试? Is there any standard way to do it?有没有标准的方法来做到这一点?

Any help is greatly appreciated.任何帮助是极大的赞赏。 Thanks!谢谢!

You can use any load testing tool which is capable of sending message to the API gateway and then reading it from Kafka.您可以使用任何能够将消息发送到 API 网关然后从 Kafka 读取消息的负载测试工具。

When it comes to JMeter it's capable of both:当涉及到JMeter时,它有两种能力:

  1. API Gateway: Building a WebService Test Plan API 网关: 构建WebService测试计划
  2. Kafka consumer: Apache Kafka - How to Load Test with JMeter Kafka 消费者: Apache Kafka - 如何使用 JMeter 进行负载测试
  3. If you want to measure the cumulative duration of the request from API till it gets "consumed" - Transaction Controller如果你想测量从 API 到它被“消耗”的请求的累计持续时间 - 事务 Controller

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何修改 azure 管道中测试结果的存储库/存储位置 - How to modify the repository / storage location for Test Results in azure pipeline 如何为管道设置重试 - How to set a retry for a pipeline 如何在管道开始时对侧输入进行初始加载,同时仍定期刷新相同的侧输入? - How can I do initial load of side input at the beginning of pipeline, while still refreshing the same side input on regular interval? 批量加载导致文件中的架构漂移(adf 管道或映射数据流) - Bulk load causing schema drift in files (adf pipeline or mapping dataflows) 如何对 Chalice 应用程序进行异步 API 调用? - How to make an asynchronous API call to a Chalice app? 如何在 SageMaker 管道 UI 上显示指标和价值? - How to display metrics and value on SageMaker pipeline UI? 如何跟踪数据管道中的数据差异 - How to Track Data Difference in Data Pipeline 如何用rsync正确写入bitbucket管道? - How to write bitbucket pipeline correctly with rsync? 如何指定目录来触发代码管道cdk? - How to Specify directory to trigger code pipeline cdk? 如何在 sagemaker 管道中配置默认存储桶? - how to configure default bucket in sagemaker pipeline?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM