是否可以使 Akismet 异步?
我正在使用 Akismet 来阻止垃圾评论,但有时 Akismet 需要很长时间才能回复。我说的不是几毫秒,而是很多秒,在某些罕见的情况下甚至接近一分钟。
有没有办法让 Akismet 异步?我的意思是,它向 Akismet 发送 API 调用,但立即返回到博客文章。它可以默认接受评论,但一旦 Akismet 完成,它就可以更新我的信息。如果博客评论是垃圾评论,它将删除它。如果不是,一切都好。
有办法做到这一点吗?如果我想这样做,我是否必须编写自己的反垃圾邮件服务?这是否可行——需要做很多工作吗?
I'm using Akismet to block comment spam, but sometimes it takes way too long for the response to come back from Akismet. I'm not talking about just a few milliseconds - I'm talking about many seconds, and even close to a minute in some rare cases.
Is there a way to make Akismet asynchronous? By that I mean, it sends an API call to Akismet, but immediately returns to the blog post. It could by default accept the comment, but as soon as Akismet is done, it could update me. If the blog comment was spam, it'll delete it. If it wasn't, all's good.
Is there anyway to do this? Do I have to write my own anti-spam service if I want to do this? is this even feasible - will it require a lot of work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您绝对没有理由看到这样的响应时间。实际处理时间始终低于 100 毫秒。网络延迟可能会增加这一点,但我们始终位于美国的两个主要数据中心,因此您应该会看到快速的响应时间。
https://akismet.com/contact/ - 与我们联系,我们将帮助查找问题。
There's definitely no reason you should see a response time like that. The actual processing time is always sub-100ms. Network lag can add to that, but we're always in two major data centers in the US, so you should see fast response times.
https://akismet.com/contact/ - get in touch and we'll help track down the problem.
他们变得缓慢。我们使用它们,它会根据它们的服务器负载而波动。
They get slow. We use them and it fluctuates depending on their server load.
您应该查看 Impermium http://impermium.com/。它们的响应时间一般约为 2.5 毫秒。
You should look at Impermium http://impermium.com/. They're response time are generally about 2.5 ms.