Amazon's API requires you to have a signature which is a combination of many elements one being the secret. The sever checks this signature by matching the API key passed in the parameters with a secret it has stored in the database.
My question is, how does amazon match the api key and secret, wont doing a query every time overload the database. Also wont caching the api key and result for millions of developers cause shortage of ram?
or since its just 30 characters, so 30 bytes? itll only take 286 megs of ram?
Also what about if Im using Memcached to store these key and value pairs. Assume I have 1GB of memcached allocated, how fast will the seek be to verify the key/value