ASP.NET - 有效地推迟单个请求code执行? [英] ASP.NET - Efficiently delay code execution for single request?
本文介绍了ASP.NET - 有效地推迟单个请求code执行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想推迟code执行单个请求(基于IP地址)有效,而不会影响整体服务器性能(所以 Thread.sleep代码
不是一个选择吗?)。
I would like to delay code execution for a single request (based in IP address) efficiently without affecting the overall server performance (so Thread.Sleep
is not an option?).
如何才能做到这一点?
(这是为了激怒特定的人在特定的时间,同时还提供正确的功能,当时间到了..)
(this is to annoy specific people for a certain amount of time, while still providing correct functionality when the time is over..)
推荐答案
在我看来,我不会在你的应用层做这样的事情,这是Web服务器的任务,而不是你自己的逻辑。
In my opinion, I wouldn't do such thing in your application layer, this is a Web server task rather than your own logic.
相反的是,这个什么IIS模块?
Instead of that, what about this IIS module?
- http://www.iis.net/download/DynamicIPRestrictions
这篇关于ASP.NET - 有效地推迟单个请求code执行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文