API Architecture Tips

I am just about to complete a project where my company architected an API for a client. I learned a lot of things during this project. So here are my tips for API architecture .

  1. Never have a single person design an API
    A lot can be said about why to do this. A simple answer is when someone thinks of a solution he/she is usually biased towards that solution unless proven wrong. Now to keep the bias in check and if needed challenge an idea you need a second person. Also more people is equal to more ideas . But don’t have a huge team too , it will slow down the entire process.
  2. Make APIs concise
    An API that is not concise is usually hard to understand and implement.
  3. Plan for the future
    Keep in mind future functionalities the API might have , also make sure that the API is built of simple blocks so that future versions need not have to rewrite the entire API
  4. Explain everything
    A well explained API is a widely used API Smile
  5. Try to save on network calls if API is used by an Mobile device
    Network calls increase latency , thus try to keep them to a minimum. If needed bundle a bunch of APIs into one and let the client decide which API to use.
  6. Push the computation to the server
    Not much to explain here, a bunch of servers is any day more powerful than a client machine.

Let me know if you have any feedback

Posted in Blog
2 comments on “API Architecture Tips
  1. Hassan Seth says:

    Yes true. API design is the critical part. The better it is developed, the more it is useable.

  2. Jonathas Sucupira says:

    nice.

    Thank you for the tip

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 
Archives
Stack Excange profile