可以以不同的工作人员角色访问单个输入端点 [英] Single input endpoint can be accessed in different worker role

查看:43
本文介绍了可以以不同的工作人员角色访问单个输入端点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个输入终结点(名称-23456),我可以将23456终结点访问为其他辅助角色吗?

I have a input endpoint(name - 23456), Can i access the 23456 endpoint into different worker role?

例如:-在"23456"端点中,我具有此数据的 23,34,45,56,78 .

For eg :- In "23456" endpoint, i have this data's 23,34,45,56,78.

工人角色-"A"和"B"

当我通过"A"角色访问端点时,我将获得23作为值.当我通过"B"角色访问端点时,我将获得34或23的值是什么?

When i access the endpoint through "A" worker role, i will get 23 as values. When i access the endpoint through "B" worker role, What value i will get 34 or 23?

我想了解输入端点的工作流程.请帮助我理解.

I could like to understand the working flow of input endpoint. Please help me to understand.

推荐答案

输入端点在Web角色或辅助角色的所有实例之间实现负载均衡.

Input endpoints are load-balanced across all instances of a web role or worker role.

如果要直接访问给定实例,则需要创建输入实例端点.可以找到详细信息

If you want direct access to a given instance, you need to create input instance endpoints instead. Details may be found here.

注意:事实上,根据所访问的角色实例,您会看到不同的数据,这意味着您是在实例本身上存储数据,而不是在全局资源(例如数据库或缓存)上存储数据.存储在各个角色实例上的数据受到威胁,因为它是非持久性存储(除非您正在使用连接的磁盘).即使使用附加磁盘,角色实例回收后的任何时间数据也将不可用.

Note: The fact that you're seeing different data depending on which role instance you're visiting means you're storing data on the instance itself, instead of a global resource (such as a database or cache). Data stored on individual role instances is at risk, since it's non-durable storage (unless you're using attached disks). And even if you're using attached disks, your data will become unavailable during any time your role instance is recycled.

这篇关于可以以不同的工作人员角色访问单个输入端点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆