Single input endpoint can be accessed in different worker role

风流意气都作罢 提交于 2021-02-05 09:11:47

问题


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

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

Worker roles - "A" and "B"

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.


回答1:


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.



来源:https://stackoverflow.com/questions/34295758/single-input-endpoint-can-be-accessed-in-different-worker-role

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!