URL Shortening Service Flashcards
1
Q
How long might a URL string be?
A
500 bytes
2
Q
How many bytes needed to store one alpha-numeric character?
A
1 byte
3
Q
With base64 encoding, how many letters are encoded to for each letter? Can you determine how many possible combinations you have for a 6 letter url?
A
Each letter is encoded to 6 letters
Combinations are 64 ^ 6 = ~68.7 billion possible strings
4
Q
What is Memcashed? What is it for?
A
A general-purpose distributed memory-caching system. Memcached’s APIs provide a very large hash table distributed across multiple machines. When the table is full, subsequent inserts cause older data to be purged in least recently used (LRU) order
5
Q
HTTP code for redirect?
A
302 redirect