URL Shortening Service Flashcards

1
Q

How long might a URL string be?

A

500 bytes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How many bytes needed to store one alpha-numeric character?

A

1 byte

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

HTTP code for redirect?

A

302 redirect

How well did you know this?
1
Not at all
2
3
4
5
Perfectly