Skip to content

Azure service bus triggers, func.ServiceBusMessage or servicebus.ServiceBusReceivedMessage and settlements #146

@TorbjornHoltmon

Description

@TorbjornHoltmon

Is your question related to a specific version? If so, please specify:

What binding does your question apply to, if any? (e.g. Blob Trigger, Event Hub Binding, etc)

Service Bus

Question

I have been integrating some azure functions with service bus triggers, and I want to point out documentation I think should be updated or clearified.

The docs for function service bus bindings can be found here:

overview:
https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-service-bus?pivots=programming-language-python&tabs=isolated-process%2Cextensionv5

triggers:
https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-service-bus-trigger?tabs=python-v2%2Cisolated-process%2Cnodejs-v4%2Cextensionv5&pivots=programming-language-python

The example of triggers use both func.ServiceBusMessage and servicebus.ServiceBusReceivedMessage

The example points to https://github.com/Azure/azure-functions-python-extensions using https://pypi.org/project/azurefunctions-extensions-bindings-servicebus/

The releases of azurefunctions-extensions-bindings-servicebus are marked as pre-release. The examples in the repo show settlements, which is something we want to use. However, the docs says that

Message settlement is not yet supported.

But the whole package is pre-release, and servicebus.ServiceBusReceivedMessage is used in the in the docs, so are settlements actually supported too?

Also, the package azurefunctions-extensions-bindings-servicebus is dependant on uamqp which has a history of not building and working on arm mac os machines:

Azure/azure-uamqp-python#386
Azure/azure-uamqp-python#379
Azure/azure-uamqp-python#349
Azure/azure-uamqp-python#284
Azure/azure-uamqp-python#278
the list goes on...

And it is no longer activly maintained
Azure/azure-uamqp-python#374

If these are the bindings that azure wants us to use on azure service bus going forward, it should maybe use maintained libraries that mac os users can use.
We have ended up just using the old func.ServiceBusMessage to read messages, and live without manual settlements for now.
But I would love to know when we can use settlements, and if its planned anytime soon

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions