<i id='zg4IQ'><tr id='zg4IQ'><dt id='zg4IQ'><q id='zg4IQ'><span id='zg4IQ'><b id='zg4IQ'><form id='zg4IQ'><ins id='zg4IQ'></ins><ul id='zg4IQ'></ul><sub id='zg4IQ'></sub></form><legend id='zg4IQ'></legend><bdo id='zg4IQ'><pre id='zg4IQ'><center id='zg4IQ'></center></pre></bdo></b><th id='zg4IQ'></th></span></q></dt></tr></i><div id='zg4IQ'><tfoot id='zg4IQ'></tfoot><dl id='zg4IQ'><fieldset id='zg4IQ'></fieldset></dl></div>

      <legend id='zg4IQ'><style id='zg4IQ'><dir id='zg4IQ'><q id='zg4IQ'></q></dir></style></legend>

        <tfoot id='zg4IQ'></tfoot>
        • <bdo id='zg4IQ'></bdo><ul id='zg4IQ'></ul>

        <small id='zg4IQ'></small><noframes id='zg4IQ'>

        Azure 函数静态隔离

        Azure functions static isolation(Azure 函数静态隔离)
      1. <legend id='jU6HN'><style id='jU6HN'><dir id='jU6HN'><q id='jU6HN'></q></dir></style></legend>

        <tfoot id='jU6HN'></tfoot>

            <i id='jU6HN'><tr id='jU6HN'><dt id='jU6HN'><q id='jU6HN'><span id='jU6HN'><b id='jU6HN'><form id='jU6HN'><ins id='jU6HN'></ins><ul id='jU6HN'></ul><sub id='jU6HN'></sub></form><legend id='jU6HN'></legend><bdo id='jU6HN'><pre id='jU6HN'><center id='jU6HN'></center></pre></bdo></b><th id='jU6HN'></th></span></q></dt></tr></i><div id='jU6HN'><tfoot id='jU6HN'></tfoot><dl id='jU6HN'><fieldset id='jU6HN'></fieldset></dl></div>

            <small id='jU6HN'></small><noframes id='jU6HN'>

              <tbody id='jU6HN'></tbody>

                • <bdo id='jU6HN'></bdo><ul id='jU6HN'></ul>
                  本文介绍了Azure 函数静态隔离的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我找不到太多关于在应用服务计划中隔离 Azure 功能的文档.

                  I haven't been able to find much documentation on the isolation of Azure functions in an app service plan.

                  如果您在 azure 函数调用之间共享一个静态变量,例如 HttpClient,我认为通读可扩展性建议,它可以在同一进程或单独进程中运行,或者单独的服务器...这很好,使用 Lazy<T> 可以帮助解决线程问题.

                  If you share a static variable for example an HttpClient between azure function invocations I presume reading through the scalability suggestions that it could run in the same process or separate processes or separate servers... which is fine, using Lazy<T> can help with threading issues.

                  但是单独的 Azure Functions 可以共享一个工作进程吗?即我应该隔离静态变量以确保功能隔离吗?我收集使用带有函数键的 ConcurrentDictionary 是帮助解决此问题的好方法,但我没有找到任何讨论隔离的文档.

                  But could separate Azure Functions share a worker process? i.e. should I isolate static variables to ensure isolation of the functions? I gather using a ConcurrentDictionary with a key for the function is a good approach to help solve this, but I haven't found any documentation that discusses isolation.

                  推荐答案

                  您可以通过拥有一个或多个 Function Apps 来管理:

                  You can manage this by having one or many Function Apps:

                  • 同一个Function App的不同功能将在同一个进程中运行,并且将与在同一主机上运行的同一个应用的其他功能重用任何静态状态.

                  • Different functions of the same Function App will be running in the same process and will reuse any static state with other functions of the same app running on the same host.

                  不同功能应用的功能相互隔离.

                  Functions of different Function Apps are isolated from each other.

                  要直观地看到这一点,您可以访问 Kudu(每个应用程序的).在 Environment 选项卡上,您会看到一个机器名称,因此您可以检查两个应用程序是否在同一台机器上运行.然后,在 Process Explorer 选项卡上,您将看到分配给特定 Function App 的 w3wp.exe 进程.

                  To see that visually you may go to Kudu (of each app). On Environment tab you see a machine name, so you may check that two apps are running on the same machine. Then, on Process Explorer tab you will see a w3wp.exe process assigned to a specific Function App.

                  这篇关于Azure 函数静态隔离的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Populate ListBox with a IEnumrable on another thread (winforms)(在另一个线程(winforms)上使用 IEnumrable 填充 ListBox)
                  listbox selected item give me quot; System.Data.DataRowViewquot; , C# winforms(列表框选择的项目给我quot;System.Data.DataRowView, C# Winforms)
                  Cannot remove items from ListBox(无法从列表框中删除项目)
                  Preventing ListBox scrolling to top when updated(更新时防止列表框滚动到顶部)
                  Drag and drop from list to canvas on windows phone with MVVM(使用 MVVM 在 Windows 手机上从列表拖放到画布)
                  Deselection on a WPF listbox with extended selection mode(具有扩展选择模式的 WPF 列表框上的取消选择)

                • <tfoot id='tMcSS'></tfoot>

                  <small id='tMcSS'></small><noframes id='tMcSS'>

                    • <bdo id='tMcSS'></bdo><ul id='tMcSS'></ul>

                          <tbody id='tMcSS'></tbody>

                          <legend id='tMcSS'><style id='tMcSS'><dir id='tMcSS'><q id='tMcSS'></q></dir></style></legend>
                          • <i id='tMcSS'><tr id='tMcSS'><dt id='tMcSS'><q id='tMcSS'><span id='tMcSS'><b id='tMcSS'><form id='tMcSS'><ins id='tMcSS'></ins><ul id='tMcSS'></ul><sub id='tMcSS'></sub></form><legend id='tMcSS'></legend><bdo id='tMcSS'><pre id='tMcSS'><center id='tMcSS'></center></pre></bdo></b><th id='tMcSS'></th></span></q></dt></tr></i><div id='tMcSS'><tfoot id='tMcSS'></tfoot><dl id='tMcSS'><fieldset id='tMcSS'></fieldset></dl></div>