-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kafka base realisation #83
Comments
We also need Kafka based support in JMeter Java DSL for async API load testing. We are using Kafka Support and |
Can you tell me what is missing in the example I provided? |
I am still learning about DSL and how we can use it to replace a conventional Jmeter based performance test. |
This is based on jsr223 Sampler, which is the part of dsl. DSL give you the ability to use any java code inside. So that's it |
Thank you for your response . I am new to DSL and Jmeter both so trying to understand how could I use these methods to build a performance test using DSL . |
I revied the plugins which implement it and make the conclusion that they are really more complex and overfeatured that the base needed. In my mind there is only two base needs: Configure kafka, Produce messages to kafka.
I create this code on Kotlin to realise it. Maybe it will be helpfull for anybody, or maybe implement it in dsl:
`import java.util.Properties
import kotlin.collections.HashMap
import org.apache.kafka.clients.producer.KafkaProducer
import org.apache.kafka.clients.producer.ProducerRecord
import us.abstracta.jmeter.javadsl.JmeterDsl
import us.abstracta.jmeter.javadsl.java.DslJsr223Sampler
object Kafka {
private val kafkaSets = HashMap<String, KafkaProducer<String, String>>()
}`
The text was updated successfully, but these errors were encountered: