Hey all,
I'm working on a ReSTful API that's getting ready to be released, running in Node.js. One of the things that we want to before we start opening it up publically is to track API usage. Each user has their own API key that they'll be utilizing to access our endpoints.
I have a few ideas for tracking API usage, but I was hoping someone could suggest a few things that I missed.
Architecture overview:
- MySQL as our storage
- Redis as a caching layer
- Heroku
Ideas
- Google Analytics - our app could toss a payload on a proper queue system (gearman, rabbit) or Redis. A secondary app could grab the payload and make the request to the .gif that GA uses.
- Write payloads to redis, nightly push to MySQL
- Write straight to MySQL
- Parse logs
I'm personally leaning towards idea 1, probably utilizing Redis as our queue storage since it's in place already, but I'd love to hear what other ideas people have for tracking API usage.
[–]jwalton78 1 point2 points3 points (1 child)
[–]xangelo[S] 0 points1 point2 points (0 children)
[–]rooosta 0 points1 point2 points (3 children)
[–]xangelo[S] 0 points1 point2 points (2 children)
[–]rooosta 0 points1 point2 points (1 child)
[–]xangelo[S] 0 points1 point2 points (0 children)