Azure Webjobs vs Azure Functions : How to choose

后端 未结 8 1724
耶瑟儿~
耶瑟儿~ 2020-12-02 03:49

I\'ve created some Azure Webjobs that use triggers and I\'ve just learnt about Azure Functions.

From what I understand Azure Functions seem to overlap with Azure Web

相关标签:
8条回答
  • 2020-12-02 04:43

    I would like to give what are the commonalities and differences between the two Azure functions are built on top of AppService and WebJobs SDK. WebJobs SDK will give you more freedom to play with while Azure functions are more structured with fewer responsibilities for the developers.

    When you look at the commonalities Both uses the function-oriented programming mode, bindings for trigger/input/output, support external libraries and can run and debug locally Supportruntime toiletries.

    Differences

    |-----------------------|------------------|
    |      Functions        |     Web Jobs     |
    |-----------------------|------------------|
    |Can support HTTP       | Can't support HTTP
    |                       |  requests        |
    |-----------------------|------------------|
    |Supports a variety of  | Traditional .NET |
    |languages/tools        | developer        |
    |                       | experience       |
    |-----------------------|------------------|
    |Bindings are configured| Config files are |
    |using attributes       | used             |
    |-----------------------|------------------|
    |Scale is managed by    | Scale is managed |
    |Azure                  | by user          |
    |-----------------------|------------------|
    |Limited control over   |Host can be       |
    |host                   |controlled by user|
    --------------------------------------------
    

    0 讨论(0)
  • 2020-12-02 04:43

    One answer I always found for this question was You can Customize Host in Azure WebJobs but you cant Customize the host of Azure Functions,

    An example for this is "In a WebJob, you can create a custom retry policy for calls to external systems."

    This kind of policy can't be configured in an Azure Function.

    0 讨论(0)
提交回复
热议问题