Comments (5)
Maybe this video could answer your question: http://www.youtube.com/watch?v=v3OMEAU_4HI
Rest is small and lightweight and you can save some bandwidth using rest. there is no overhead like with soap.
So i recommend to use REST instead of SOAP.
from apai-io.
Of course SOAP is some kind of old fanshioned ;)
from apai-io.
Thanks Jan!
I was wondering, more specifically in the case of Amazon's Product API – maybe you've tested both on their API, is REST faster as well on this particular "real-world" case?
Thanks!
from apai-io.
I've tested both versions but without any stopwatch ;) What i defenitly can say is that the memory consumption with the REST Version is very small compared to the soap version.
You also get back an XML with REST which could be used in more different ways like the SOAP Response.
You are able to do more funny things with it like iterating over it with xpath or something else.
But it would be interesting to test the speed as well.
Maybe i will setup an test environment and measure the performance of both and then comparing it.
from apai-io.
On my NAS-Server:
SOAP Request (1079936 Bytes Memory): 0.8582 Seconds to complete
REST Request (503456 Bytes Memory): 0.7514 Seconds to complete
With the same Search Request:
object(ApaiIO\Operations\Search)#4 (1) {
["parameter":protected]=>
array(5) {
["SearchIndex"]=>
string(3) "DVD"
["Actor"]=>
string(12) "Bruce Willis"
["Keywords"]=>
string(13) "Stirb Langsam"
["ItemPage"]=>
int(3)
["ResponseGroup"]=>
array(2) {
[0]=>
string(5) "Large"
[1]=>
string(5) "Small"
}
}
}
from apai-io.
Related Issues (20)
- AWS.Invalid (truncated...) HOT 5
- SignatureDoesNotMatch HOT 2
- Search for ASIN HOT 3
- 400 Bad Request - Request has expired HOT 1
- when no category defined, no results
- condition = 'used' should be 'Used'
- Question: Catching errors HOT 1
- Restricting "Similar" Results by Node
- how to use without composer? HOT 1
- GuzzleHttp\Exception\ServerException HOT 2
- Detailed Release Notes HOT 1
- amazon country
- Dynamically Insert Value base on User Request
- why does setPage have a limit of 10?
- Error 503 Service Unavailable HOT 6
- Problem when using in two plugins at the same time
- Technical question
- Product Advertising API 5.0 HOT 29
- RequestException.php throwing an error? HOT 1
- Guzzle 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apai-io.