none
Should we go ahead and implement Function-Filters in Azure function in Production RRS feed

  • Question

  • Hi Team,

    I was working on an POC to create an generic Authorize Attribute kind of functionality in HTTP trigger Azure Function using Function Filters. 
    I was able to achieve the same using Function Filters but while googling i found that this feature is still in preview 
    and there will be breaking changes in near future.
    I just want to ask you should I go ahead and implement the POC for enterprise Azure Function or I should avoid using it 
    till further announcement from Microsoft Azure function team? 



    • Edited by SailleshP Sunday, June 2, 2019 8:31 AM
    Sunday, June 2, 2019 8:31 AM

All replies

  • Hi Saillesh

    Function Filters is still in preview and Product Group is planning to support for Azure Function for GA in the near future but this timeline is subject to change. 

    I will check more on this internally and will update the findings.

    Monday, June 3, 2019 2:55 AM
    Moderator
  • Thanks for the prompt reply.

    I will be waiting for your reply so that we can take correct decision on Function-Filters.

    Monday, June 3, 2019 6:34 AM
  • Hi Saillesh,

    Bulk of the work for Invocation Filters was checked in via #980. However, there are some remaining work items we're tracking before the feature can be considered complete:

    • Integrate Filters fully with DI.
    • Allow filters to provide a response (tracked by #1314)
    • Make filter Timeout behavior consistent. Currently only invocation filters run under timeout, not exception filters.
    • Consider adding IBinder to the execution context to facilitate binding operations in filters.

    You can tracked this by https://github.com/Azure/azure-webjobs-sdk/issues/1284



    Thursday, June 6, 2019 3:21 AM
    Moderator
  • So we should not go ahead with Function Filters in production.

    Till this remaining work is complete. :(

    Thursday, June 6, 2019 10:14 AM
  • Hi Saillesh,

    You can move ahead with Azure Functions Filter with all the already implemented features.

    But yes if there is any feature which is still in progress which you think you will be using then probably we might need to wait but for all the other features already implemented you can use Azure Function filter.

    Thursday, June 6, 2019 10:19 AM
    Moderator
  • Thanks Dixit appreciate your help on this matter. I will go ahead an implement them.
    Friday, June 7, 2019 6:14 PM