Quantcast
Channel: Grafana k6 - Grafana Labs Community Forums
Viewing all articles
Browse latest Browse all 329

Using k6 with Event Hub Messaging by Producing and Consuming messages

$
0
0

Hello all,

Does k6 have an official interface to Event Hub or is it something that is being worked upon?

It’s just that I am using k6 to simulate producing messages to an Event Hub instance and then consuming those messages. The ultimate objective is to measure how long it takes to enqueue to Event Hub the messages and then these messages becoming dequeued on the Cosmos DB - the entire time taken from enqueueing to dequeuing the message.

Right now, I have configured a make shift api server for the producer and one api server for the consumer both listening on separate ports. Then I use k6 to send the messages that call the make shift endpoint which calls the producer code and then one that calls the consumer code. Both producer and consumer codes are configured with the Event Hub instance in Azure.

I am running the test over the http protocol and the endpoint is local… both of which can skew the stats due to being http and local connection to the Event Hub. However, i get timeouts for api requests as I am simulating large amounts of data per second… yet all the messages appear to progress through from both producer and consumer - as I can see that in Azure all the messages are correctly being churned.

My question then overall is that is the above the right approach as I now have a local host as well http to make the calls and I can’t get a 200 response most of the time especially from the consumer thus skewing the results? Is there a better way that i can connect to the Event Hub and directly send messages rather than via http call in k6?

Thanks in advance!
Shayan.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 329

Trending Articles