GithubHelp home page GithubHelp logo

Comments (5)

Exeu avatar Exeu commented on May 20, 2024

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.

Exeu avatar Exeu commented on May 20, 2024

Of course SOAP is some kind of old fanshioned ;)

from apai-io.

julien-c avatar julien-c commented on May 20, 2024

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.

Exeu avatar Exeu commented on May 20, 2024

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.

Exeu avatar Exeu commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.