使用 JMeter 开发 Apache Kafka 生产者和负载测试 [英] Develop Apache Kafka producer and load testing using JMeter

查看:35
本文介绍了使用 JMeter 开发 Apache Kafka 生产者和负载测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用 JMeter 将消息推送到 Apache Kafka.

Is it possible to use JMeter to push messages to Apache Kafka.

如何实现生产者(在JAVA中)将消息推送到Kafka.

How to implement producer (in JAVA) to push messages to Kafka.

问候,阿南

推荐答案

我以为之前有答案,也许没有.这些你看了吗?我自己用的是原来的 kafkameter.

I thought there was an answer earlier, maybe not. Have you taken a look at these? I'm using the original kafkameter myself.

和 kafkameter 教程:

and tutorials on kafkameter:

为了在 JMeter 之外使用,我发现在 ruby​​、python 或 node.js 中编写生产者加载工具比在 Java 中更容易.但这是个人喜好.负载可扩展性是另一回事,但其他语言更容易制作生产者工具的原型.

For use outside of JMeter, I've found it easier to write a producer load tool in say ruby, python, or node.js than in Java. But it's personal preference. Load scalability is another matter but other languages are easier to prototype out a producer tool.

更新:

自原始帖子以来,JMeter 现在有另一个解决方案/选项:

Since the original post, there's now another solution/option for JMeter:

与其发布有关它的具体教程,不如在谷歌上搜索一些术语的组合,例如Pepper-Box kafka jmeter",并查看这些术语的教程结果,因为有很多.BlazeMeter 的应该不错.

and rather than post specific tutorials about it, you're better off googling for some mix of terms like "Pepper-Box kafka jmeter" and go over the tutorial results for those as there are quite a few. The ones from BlazeMeter should be good.

这篇关于使用 JMeter 开发 Apache Kafka 生产者和负载测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆