如何大的电子商务网站是如此之快? [英] How large eCommerce sites are so fast?

查看:119
本文介绍了如何大的电子商务网站是如此之快?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在努力的基础上NopCommerce asp.net MVC3电子商务应用。

I have been working on asp.net mvc3 e-commerce application based on NopCommerce.

最近,我们一直在性能方面提高网站的性能。该网站有多于200000个产品和1200类和大型无。的品牌。这种努力已导致到性能增加20〜200倍,但仍当替补标对电子商务专业的学生一样,亚马逊,flipkart,jabong,letsbuy,易趣,shopping.indiatimes.com,等它仍然是慢。

Recently we have been working on performance side to improve the performance of the site. The site have more than 200000 products and 1200 categories and large no. of brands. This efforts has resulted into 20 to 200 times the performance increment, but still when bench marked against the e-commerce majors like, amazon, flipkart, jabong, letsbuy, ebay, shopping.indiatimes.com,etc it is still slower.

现在看着眼前几个网站,像亚马逊,Flipkart&安培; Jabong ......他们的页面开始以几乎为零的等待时间加载,和图像等资源负载几乎瞬间。

Now looking at just few sites, like Amazon, Flipkart & Jabong... Their page starts loading with almost zero waiting time, and images and other resources load almost instantaneously.

另外搜索,NOP商务部是染色速度慢,只是看FlipKart&放大器; Jabong或亚马逊,他们非常快。不知道怎么样?他们在做什么?他们是否在DB或别的东西进行搜索?

Also for search, Nop Commerce is dyeing slow, just look at the FlipKart & Jabong or Amazon, they very fast. No clue how? What do they do? Do they perform a search in db or something else?

我的问题是他们在做什么,有这样的精彩演出?我知道他们具有负载平衡服务器与纪念品缓存等实现高速缓存可能是整个网站的内存实现。

My question is what do they do to have this kind of superb performance? I know they have load balancing servers with mem cached like memory implementation implemented to cache may be the entire site.

但什么是创造如此大的可扩展的Web站点上的最佳做法?和他们怎么办呢?任何人使用任何开源电子商务平台,像NOP商业或Magento的作为他们的基地?还是他们都preFER定制的?

But what are the best practices for creating such large scalable web site? And how do they do it? Are any of them use any opensource e-commerce platform like nop commerce or magento as their base? Or do they all prefer custom made?

想了解如何缩放和他们一样的Web应用程序与执行其最佳实践。 (注意,这是一个普遍的问题,而不是一个NOP贸易有关的之一,它是我们使用到最新最好的电子商务应用之一。)

Would like to learn how to scale a web application like them with its best practices to implement. (Note that this is a general question and not a nop-commerce related one, it is one of the best e-commerce application we used till date.)

感谢

推荐答案

数据库层通常总是一个瓶颈,并经常显著之一。这意味着它是你必须有一个缓存层,以尽量减少数据库访问,并从关键路径中删除。 Memcached的可能是一个不错的选择,当一个key-value存储就足够了。

The database tier is usually always a bottleneck, and often the significant one. That means it’s imperative that you have a caching layer to minimize database access and remove it from the critical path. Memcached may be a good option when a key-value store is sufficient.

然而,许多现实世界的情景涉及复杂的领域模型。在这些情况下,更好的做法是使用一个内存数据网格,与域对象的工作,并能处理嵌入的对象之间的关系。

However, many real-world scenarios involve complex domain models. In these cases, it’s much better to use an in-memory data grid that works with domain objects and which can handle embedded object relationships.

这是在内存数据网格也是非常有益的,如果你需要高可用性,弹性伸缩,最大的表现,或许希望它击中数据库之前创建一个事件驱动架构或pre-处理数据。这里有一个很好的视频描述了如何一些最大的球员做到这一点:
http://youtu.be/1AR2WWaP8CE

An in-memory data grid is also very helpful if you need high-availability, elastic scaling, maximum performance, and perhaps want to create an event-driven architecture or pre-process data before it hits the database. Here’s a good video describing how some of the biggest players do it: http://youtu.be/1AR2WWaP8CE

另一个主要的优化将是减少下载内容的时间,所以你还需要使用一个内容分发网络。先从这两个优化,你可能会发现,性能已经不再是一个问题。

Another major optimization would be in reducing the time to download content, so you’ll also want to use a content delivery network. Start with these 2 optimizations and you may find that performance is no longer an issue.

规范

这篇关于如何大的电子商务网站是如此之快?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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