Azure / Azure/Azure-Functions

Why the function consume the message from service bus topic so slowly?

Open
#1,312 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

Hi,

I created one function app to consume message from service bus, then import to cosmos DB, everything is ok, but the only problem is that the function consumes the message in service bus topic so slowly.

1. this is the function app configuration


![fun1](https://user-images.githubusercontent.com/46955295/63835992-3bb7c280-c9ab-11e9-8b38-07992e91be63.jpg)


![fun2](https://user-images.githubusercontent.com/46955295/63836005-43776700-c9ab-11e9-8cd7-c927cbd877ab.jpg)

![fun3](https://user-images.githubusercontent.com/46955295/63836013-483c1b00-c9ab-11e9-97c0-1182a18e6885.jpg)

2. this is the cosomos DB configuration


![cosmos](https://user-images.githubusercontent.com/46955295/63836072-6c97f780-c9ab-11e9-90ab-1067e4873a23.jpg)

3, this the service bus topic, you could see, it assemble so many message, I tested, it seems that it only consume 50-60 messages/sec, even less if there are more message send to the topic.

![topic](https://user-images.githubusercontent.com/46955295/63836250-c698bd00-c9ab-11e9-8e39-f552e6ae9a59.jpg)

What I want to do is correct, the message can be sent to the topic, function app can consume the message from topic and import to the cosmos DB, but it is too slowly.

Anything I did wrong for the configuration? Please tell me how to make it more quickly.

Thanks

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.