The Value Of Atom?
The values of Atom haven't really clicked with me yet. In this particular example how is it better than something like "multipart/*". On your client or server, you have the added complexity of having to support the Atom XML interaction format. With multipart, we can have the same information(through Location, Content-Location, and Content-Type headers) in a much more condensed format.Bill de hOra tries to help answer the question from (the other) Bill by outlining the 7 important aspects of Atom for him:
Even better than multipart, why not just send back a comma delimited list of order URIs?
One of the things (but not the only thing) that attracted me to REST was that you could focus on the data format you were exchanging between your services and not tunnel your interactions with a intermediary protocol. So far, Atom to me is just a sexier replacement to SOAP.
- the extension rules (mustIgnore, foreign markup)
- the date construct rules
- the content encoding rules
- unordered elements
He then concludes with how these principles are actually much broader applicable than Atom:
Even if you don't like Atom (or XML for that matter), if your carrier format is going to survive on the web, you need to have addressed these 7 primitives. This is what I tell people who prefer something domain specific and direct instead of trying to map the domain in abstract formats like Atom and SOAP - square off those and you're 80% there in terms of format quality and robustness. This applies I think to any format for use over the web or in a decentralised system, not just XML. Once a sloppy data format gets into the wild, you can't just refactor the callers, you have to version. And version. And version.And one of the earliest articles on Atom mentions that ...
... the Atom API was designed with several guiding principles in mind:Certainly a different start to SOAP. With more and more people embracing Atom for various reasons, it certainly seems like it is the favored child of REST at the moment.
- Well-defined data model -- with schemas and everything!
- Doc-literal style web services, not RPC
- Take full advantage of XML and namespaces
- Take full advantage of HTTP
- Secure, so no passwords in the clear
Uwe Zdun, Rafael Capilla, Huy Tran, Olaf Zimmermann Mar 09, 2014
Olav Maassen, Liz Keogh & Chris Matts Mar 08, 2014