Share via

ARRAffinity with Azure Functions?

Jose Antonio Silva 11 Reputation points
2021-12-03T14:40:02.86+00:00

How can we use ARRAffinity with AzFuncs?
Is PreferConnectionAffinity app setting still working? (as in https://meghnakharera.wordpress.com/2021/06/18/enable-disable-affinity-cookie-on-azure-function-app/)

Context: we need to invalidate a cache using an httphook/notification, and send the same trigger to each instance in the farm. Any other alternatives to this?
thank you

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

Developer technologies | ASP.NET Core | Other
0 comments No comments

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 84,061 Reputation points
    2021-12-03T16:03:25.65+00:00

    Affinity works via a cookie. This means the call has to store the cookie and use it in subsequent calls. As the cookie will expire, the caller needs to renew.

    Not sure how this helps you. Your cache clear evoker would somehow have to be sure it’s connected once to all servers and track a cookie for each one. But it could also have multiple cookie to the same instance.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.