Project

aws-cache

0.0
No commit activity in last 3 years
No release in over 3 years
You know, to avoid api throttling errors.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

aws-cache

Build Status

Why

We have many monitoring and management utilities that rely on knowing the state of our aws infrastructure--instances, cloudformation stacks, autoscaling groups, etc. After we wrote a few of these we started running into api throttling exceptions because these utilities were making an excessive number of api calls. We realized that in most cases these utilities did not require up-to-the-second information, so this module provides a wrapper api that works by caching information on our entire infrastructure in Redis and updating the cache every few minutes.

Usage

require 'aws-cache'
cache = AwsCache.new({'version' => version})
instances = cache.ec2_instances

Development

Improvements welcome.

Build gem file

$ gem build aws-cache.gemspec

Requirements

  • ruby 1.9+
  • aws-sdk v2
  • redis

Known to work on OSX and Ubuntu.

Legal

aws-cache was created by Manta Media Inc, a web company in Columbus, Ohio. It is distributed under the MIT license.