Wednesday, August 24, 2011

Vectorized Requests in API

Vectorized requests is an API technique that is becoming more popular these days. It is a way of requesting a multiple resources in a single http request

For example, you can request multiple users with the following:
http://myapi.com/users/1001;1002;1003/
These technique is seen in twitter API and StackExchange API.

It is an efficient technique if your API usually results in developers calling the same resource multiple times. Why make 100 request for 100 users, when you can make just 1 request?

No comments:

Post a Comment