📅  最后修改于: 2022-03-11 14:58:06.748000             🧑  作者: Mango
REST allows a greater variety of data formats, whereas SOAP only allows XML.
â Coupled with JSON (which typically works better with data and
offers faster parsing), REST is generally considered easier to work with.
â Thanks to JSON, REST offers better support for browser clients.
â REST provides superior performance, particularly through
caching for information that’s not altered and not dynamic
â It is the protocol used most often for major services
such as Yahoo, Ebay, Amazon, and even Google.
â REST is generally faster and uses less bandwidth.
It’s also easier to integrate with existing websites with no need to
refactor site infrastructure. This enables developers to work
faster rather than spend time rewriting a site from scratch.
Instead, they can simply add additional functionality.