30 Nov '13, 1am

Caching API Requests

Dan Croak November 29, 2013 ruby When making requests to an external service's API, some requests will frequently occur with the same parameters and return the same result. If we cache our request or response, we can reduce HTTP requests, which can improve performance and avoid hitting rate limits. The APICache Ruby gem is a good choice for caching the API responses (typically JSON) in any Moneta store, such as Memcache or Redis. However, we don't always need to cache the entire API response. We can save space, avoid adding the operational overhead of Memcache or Redis, and avoid repeating the JSON parsing step if we cache only the URL requested. Foursquare venue search In the following example, our app only needs a venue's name, latitude, longitude, and street address. We'll get the data from Foursquare's venue search API by category ("restaurant") and neighborhood ("The ...

Full article: http://robots.thoughtbot.com/caching-api-requests/

Tweets

Caching API Requests

rubyflow.com 30 Nov '13, 1am

Posted by croaky on November 30, 2013 — 0 comments When making requests to an external service's API, some requests will f...

Caching API Requests

robots.thoughtbot.com 01 Dec '13, 4am

Dan Croak November 29, 2013 ruby When making requests to an external service's API, some requests will frequently occur wi...

@28Bytes Take a gander at this:

name.com 30 Nov '13, 1am

Welcome to the name.com beta API page. Our API (V2) is now available for general use. The API requires programming knowled...

WTO unlikely to cede to African requests

ecotextile.com 29 Nov '13, 11am

Ford uses Coca-Cola’s PlantBottle fabric Water used as anti-microbial barrier US$500M bio-polyester plant for China Clothe...

Rails API docs have Lucky Star references?

api.rubyonrails.org 10 Dec '13, 6am

Returns a JSON string representing the model. Some configuration can be passed through options . The option ActiveModel::B...

Handling API Rate Limits with Background Jobs

robots.thoughtbot.com 23 Nov '13, 5pm

Handling API Rate Limits by Retrying Requests in Background Jobs Greg Lazarev November 23, 2013 ruby Has your app ever enc...

@rhannequin now i'm working on authenticating a...

railscasts.com 27 Nov '13, 2am

, we showed you how to build a versioned API for a store application. We can interact with this application through JSON i...

Ruby and Python Libraries for Yammer's API

robots.thoughtbot.com 25 Nov '13, 5am

Ruby and Python Libraries for Yammer's API Adarsh Pandit November 24, 2013 ruby python We've worked closely with folks at ...