如何在Web应用程序中实时/快速处理GPS数据? [英] How to do Realtime/fast processing of GPS data in web application?

查看:271
本文介绍了如何在Web应用程序中实时/快速处理GPS数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



由于数据流动是由于数据流的流动,所以我正在编写一个Web应用程序,用于映射来自GPS设备的Google地图上的实时GPS坐标。从GPS设备到Web应用程序非常快,数据库变得非常繁重,数据库每5秒钟被查询(通过运行网站的Web浏览器的AJAX)变得更加沉重。



实时更新和其在网站上的可见性之间创建了30秒至60秒的时间,实时保持更新变得非常困难。



我在CentOS 6.4 64位上使用Django + Apache + MySQL。



任何建议,我应该采取什么方向,使数据的处理/时间会很有帮助。

解决方案

我建议您使用像MongoDB这样的NoSql数据库。这真的可以帮助您实现实时的应用程序性能。



看看 Django-With-MonoDB



如果可能,尝试将默认的python解释器替换为 PyPy



我认为这两个都足以给你最好的表现。 :)



了解 Django-using-PyPy



另外对于前端,你应该使用 KnockoutJS AngularJS


I am writing a web application for mapping Real-time GPS coordinates on Google maps coming from a GPS device, for fleet managment.

Since the flow of data is very fast from the GPS device to web application for database it becomes very heavy and the database is being queried every 5 seconds(via AJAX from web browser running the website) it becomes more heavy.

Keeping the updates in real-time is becoming very difficult a lagging of 30 seconds to 60 seconds is created between the actually update and its visibility on the website.

I am using Django + Apache + MySQL on CentOS 6.4 64 bit.

Any advice in what direction i should move to make the processing/visibility of data in more real-time would be helpful.

解决方案

I would suggest you to use NoSql database like MongoDB. It would really help you to achieve real time application performance.

Have a look at Django-With-MonoDB.

And if possible try to replace default python interpreter to PyPy.

I think these two are enough to give you best performance. :)

Understanding Django-using-PyPy

Also for front-end you should use KnockoutJS or AngularJS.

这篇关于如何在Web应用程序中实时/快速处理GPS数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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