@Jan Kowalik Thanks for reaching out.
Defining Python functions as asynchronous using the async
keyword and async
packages in the function body can help take advantage of concurrent execution. This is true for both orchestrator functions and activity functions. It is recommended to define them as asynchronous if you want to take advantage of concurrent execution. This is because activity functions can also perform I/O-bound operations, such as making network calls or accessing a database, which can benefit from asynchronous execution.
In nutshell, it is recommended to define Azure activity functions as asynchronous in Python if you want to take advantage of concurrent execution and improve performance.
Please "Accept Answer" if the answer is helpful so that it can help others in the community.