如何从Web服务(API)/ SOAP(API)获得快速响应 [英] How To get fast Response from Web services (API) / SOAP (API)

查看:102
本文介绍了如何从Web服务(API)/ SOAP(API)获得快速响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

门户网站是旅游门户网站

我们从航空公司API获取航空公司数据

我们整合6 API进入网站

但我们计算每个API响应时间更长

,因为所有API数据都采用不同的方法,如Soap / Web服务/ Jason

我们对所有API使用委托方法,但仍然没有那么好的质量回复

请帮我改进一下。

are portal is travel portal
we get airline data from airline API
we integrate 6 API Into are website
but we calculate each API response time taking to longer
because all API data come in different method Like Soap / Web services /Jason
we use delegate method for all API but still not that good quality response
please help me to improve this .

推荐答案

如果你确定花在网络上的时间没什么可以做的那...毕竟网络速度不在您手中......当然,您可以为您的服务器获得最佳网络,但外部资源仍然缺乏所需的速度...

您可以做的是完善您的搜索条件,以确保最少的网络使用...

例如,如果您的最终用户在接下来的5天内要求从A到B的苍蝇,您总是要求一个每天一次,并在分页中将数据呈现给最终用户解决方案......

这样的调整可以改善网站的响应时间,即使网络很糟糕......
If you are sure that the time spent on networking there is nothing you can do with that...After all the networks speed is not in your hand...Of course you can get the best network for your server, but still the external sources can lack the requested speed...
What you CAN do is perfect your searching criteria to ensure minimum network usage...
For instance if your end-user ask for flies from A to B in the next 5 days, you always ask for one day at a time and present the data to the end-user in a paging solution...
Such tweaks can improve the response time of your site even network sucks...


这篇关于如何从Web服务(API)/ SOAP(API)获得快速响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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