问题描述
是否可以使用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.
- https://github.com/BrightTag/kafkameter
- https://github.com/EugeneYushin/new-api-kafkameter
和有关kafkameter的教程:
and tutorials on kafkameter:
- http://www.technix.in/load-testing -apache-kafka-using-kafkameter
- http://codyaray.com/2014/07 /custom-jmeter-samplers-and-config-elements
- http://www.technix.in/load-testing-apache-kafka-using-kafkameter
- http://codyaray.com/2014/07/custom-jmeter-samplers-and-config-elements
对于在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生产者并进行负载测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!