要用于实时竞价系统有什么技术? [英] What technology to use for a realtime bidding system?

查看:151
本文介绍了要用于实时竞价系统有什么技术?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://www.bidzinga.com/

http://www.bidbass.com/

他们使用COMET技术?

你有什么建议来使用,而且很可能就如何利用来实现一个简单的描述建议的技术/ IES?

解决方案
  

嗨什么是AJAX技术做这些   网站使用?

我做了Bidzinga的源 - code进行快速检查,它看起来像他们正在做的只是简单的轮询(频繁!)。例如,在这个JavaScript文件(http://www.bidzinga.com/js/default.js)我告诉其中一部分做轮询频繁:

 的setInterval(函数(){
                VAR GETTIME ='/gettime.php? +新的日期()的getTime()。
                $阿贾克斯({
                    网址:GETTIME,
                    成功:功能(数据){
                        bidOfficialTime.html(数据);
                    }
                });
            },1000);
 

这是,如果你问我,会杀了负载下的服务器pretty的不良做法。如果这个服务器,你可以看到正在使用PHP( /gettime.php )不具有的 APC 您至少需要安装/编译这个良好的性能),那么你可以打赌,服务器无法应付,因为每次PHP需要编译字节code。此外,它需要得到从盘的每个请求(有时缓存),当不使用APC或内存数据库(Redis的,Memcached的)。尽管轮询频率间隔从来都不是一个聪明的做法,你可以确保你的服务器会死的负载下。


  

他们使用COMET技术?

Bidzinga不是彗星,因为它使用普通的查询。

  

你有什么建议使用,   大概就如何进行简单的描述   使用建议的实现它   技术?

我想这取决于你的规模(大小)。

的托管解决方案

但我想在开始的时候,我会建议你使用因为它是一个托管解决方案,这是pretty的良好记录,甚至有一个免费的计划。

  

我们的免费沙箱计划包括高达   20连接和10万的消息   每天

我要提醒你,自由/廉价的计划不具备SSL,所以你千万不要发送任何私人信息通过电线。更大的价格计划确实有SSL,但会花费$ 50元包月。我觉得你可以去更便宜的,如果你自己实现,但话又说回来,这将花费你的时间(时间等于金钱)。以下是这可能会适合你的帐单一些其他的托管解决方案:

开源产品:

首先,我想提一提,这些都不是PHP的,因为我不认为PHP是专门用来处理这个。即使Facebook的这是一个完全的PHP店(现在使用街舞很多)同意我和实施聊天使用Erlang的。对于这些这是pretty的开源产品良好的记录,你将需要一个VPS。对于他们中的一些是非常好的,如果你可以安装软件的根。虽然VPS是不是真的需要所有这些产品,但你应该有编译软件的能力。

http://www.bidzinga.com/

http://www.bidbass.com/

Are they using COMET technology?

What do you recommend to use, and probably a simple description on how to implement it using the suggested technology/ies?

解决方案

Hi what ajax technology does these sites use?

I did a quick inspection of Bidzinga's source-code and it looks like they are doing just simple polling(frequently!). For example in this javascript file(http://www.bidzinga.com/js/default.js) I show part which does polling frequently:

setInterval(function(){
                var gettime = '/gettime.php?' + new Date().getTime();
                $.ajax({
                    url: gettime,
                    success: function(data){
                        bidOfficialTime.html(data);
                    }
                });
            }, 1000);

This is a pretty bad approach if you ask me and will kill your server under load. If this server which as you can see is using PHP(/gettime.php) does not have APC(You need to at least install/compile this for good performance) then you you can bet the server can't cope, because every time PHP needs to compile bytecode. Also it needs to get every request from disc(sometimes cached) when not using APC or any in-memory database (Redis, Memcached). Even though polling in frequent intervals is never a smart approach and you can be sure your server will die under the load.


Are they using COMET technology?

Bidzinga is NOT using COMET, because it uses plain polling.

What do you recommend to use, and probably a simple description on how to implement it using the suggested technology?

I guess it depends on your scale(size).

Hosted solution

but I think in the beginning I would recommend you to use pusher because it is a hosted solution which is pretty good documented and even has a free plan.

Our free Sandbox plan includes up to 20 connections and 100,000 messages per day

I have to remind you that the free/cheap plans do NOT have SSL so you should NEVER send any private information over the wire. The bigger price plans do have SSL, but will cost $50 monthly. I think you can go cheaper if you implement this yourself, but then again that will cost you time(time equals money). Here are some other hosted solutions which might fit your bill:

Open-source products:

First off I would like to mention that none of these are PHP, because I don't think PHP is designed to handle this. Even Facebook which was an entirely PHP-shop(now uses HipHop a lot) agrees with me and implemented chat using erlang. For these open-source products which are pretty good documented you are going to need to a VPS. For some of them it is really nice if you can install software as root. While a VPS is not really needed for all these products, but you should have the ability to compile software.

这篇关于要用于实时竞价系统有什么技术?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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