我该怎么做才能让n个人可以直播我的网站 [英] What should I do so that n number of persons can view my website live

查看:43
本文介绍了我该怎么做才能让n个人可以直播我的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我希望我的网站可以同时向10,000人查看。

他们也可以插入或删除来自数据库的数据。

你将如何做到这一点。


这是采访中提出的一个问题。

除了游泳池之外,我还应该回答上述问题。



问候

cmrhema

Hi,

"I want that my website should be viewable to 10,000 persons at the same time.
Also they might insert, or delete data from the database.
How will you do it".

This was one of the questions posed in an interview.
Apart from poolsize, what should I answer for the above question.


Regards
cmrhema

推荐答案

您可以使用申请表和会话变量....查看应用程序事件和会话事件href =http://msdn.microsoft.com/en-us/library/1xaas8a2(VS.71).aspxtarget = _blank> global.asax

1.在主页的Page_load上,您可以增加应用程序[NoOfUsers]如果应用程序[NoOfUsers]& yourMaxNo然后重定向到指定原因的另一个页面,否则允许查看站点...

2.在session_end或Logout上你可以递减计数器(Application [" NoOfUsers"])
You can do that using application and session variables.... Look into application events and session event in global.asax
1. On your Page_load of main page you can increment the Application["NoOfUsers"] counter.
1.1 If Application["NoOfUsers"] > yourMaxNo then redirect to another page specifying reason otherwise allow to view site ...
2. On session_end or Logout you could decrement the counter (Application["NoOfUsers"])


@DeepBlue


感谢DeepBlue,

我想再分享一个信息,该网站将托管在Windows Server 2000上。我应该在IIS中做任何事情。


问候

cmrhema
@DeepBlue


Thanks DeepBlue,
I would like to share one more information, the site will be hosted on windows server 2000. Should I do any thing in the IIS.

Regards
cmrhema


@cmrhema


在所有工作中,我们遇到了我们还不知道答案的领域。我的一个优点是,我不怕承认我没有得到所有的答案,我很乐意花费我自己的空闲时间来研究我不知道的领域,比如这个一,直到我对这个问题有一个合理的解决方案。


虽然如果你问我,这听起来像面试过程是IT的一种方式那个不知道答案的人,在没有付出时间的情况下挑选100名顾问的大脑。所需要的只是发布一个职位空缺,你将有500名申请人都渴望尽可能详细地回答每一个问题,以表明他们比其他499人申请更多。
@cmrhema
"In all jobs we come across areas where we don''t already know the answer. One of my strengths is that I''m not afraid to admit I don''t have all the answers and am readily willing to spend as much of my own free time to research the areas I don''t know, such as this one, until I have a reasonable solution to the problem."

Though if you ask me, it sounds like the interview process was a way for an I.T. person who didn''t know the answer, to pick the brains of a 100 consultants without paying for their time. All it takes is to post one job opening and you will have 500 applicants all eager to answer every question asked in as much detail as possible to show they know more than the other 499 people applying.


这篇关于我该怎么做才能让n个人可以直播我的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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