One talk immediately drew my attention: "Effective Service API Design" by Elliott Rusty Harold. I know Elliott an XML guru. Remember being at the speaker's table with him at XML DevCon in London back in 2001 where I presented "Understanding SOAP".
Some thinks I picked up:
- "Contract first" >> "Documentation first"
- Start small (MVP Minimum Viable Product, YAGNE You Ain't Gonna Need It)
- Leverage the URL, not everything
- Prefer idempotency
- Use standards: UTF-8, standard data/date formats, standard decimals with 2 digits
- Avoid required data elements
- Deprecation policy, how long to keep the old API, 2 year notice is good
- Plan for versioning: easier without schema's but with optional fields
- No assumption about use of client code/library, developers will often not use those
- If you build client code/library, develop it by hand and do not generate it
- Authentication and authorization remain a challenge
- Performance!
Although a good talk, would have hoped for some more specific guidelines.
Thanks to the Devoxx team and Stephan Janssen to publish this great content for free!
No comments:
Post a Comment