需要有关响应优化的帮助 [英] Need help on response optimization

查看:102
本文介绍了需要有关响应优化的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我使用AMAZON和EBAY API在我的网站上显示服装。创建对象后,两个API在一起和响应用户所花费的平均时间如下:
来自EBAY的100件物品和来自亚马逊的10件物品的
总共110件物品



EBAY =>请求和回复= 3秒

AMAZON =>请求和响应= 3秒

创建列表后,从数据库比较一些条件一起需要= 8秒



总计= 14-15平均有时它有时延伸到20-25。



这对任何用户体验都非常糟糕。

现在我的问题是其他网站用于响应优化的技术,以显示结果总共不超过2秒?特别购物网站



据我所知,存储在自己的数据库中并不是更好的方法,因为任何项目缺货都可能随时发生。



请帮帮我们..



谢谢...

Hello guys,

I am using AMAZON and EBAY API to show apparels on my site. average time taken by both API together and in response to user after creating object is as follows.
for 100 items from EBAY and 10 items from amazon total 110 items

EBAY => request and response= 3 sec
AMAZON => request and response= 3 sec
creating list after comparing from by database some condition all together takes= 8 sec

total= 14-15 sec average sometimes it extends to 20-25 sometimes.

This is really bad for any user experience.
Now my question is what techniques other sites are using for response optimization to show results altogether taking not more than 2 sec? Specially shopping sites

As far my knowledge storing in own database is not better approach because for any item 'Out of stock' can happen any time.

Please help guys..

Thanks...

推荐答案

他们可能会缓存来自第三方网站的数据,并且只会定期刷新(例如每天)。然后他们编写索引良好的数据库,以便查询运行得很快,并且可能还会投资强大的机器,以使它们更快。
They probably cache the data from third party sites and only refresh it regularly ( daily, for example ). Then they write databases that are well indexed, so that the queries run fast, and probably also invest in powerful machines, again, to make them faster.


好读取

优化中介的Web服务可扩展性和性能 [ ^ ]


这篇关于需要有关响应优化的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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