4 ms·
I'm basically using Bit.ly as a key-value store and short URL generator. The Billr server doesn't maintain a database.
by spoletto 14y ago
I'm basically using Bit.ly as a key-value store and short URL generator. The Billr server doesn't maintain a database.
- j_s 14y agoI guess I didn't explain myself clearly... if you shortened the url yourself (I'm sure you can find a good implementation of this), why not name the S3 image exactly the same as the short url? In the example you gave elsewhere, the image would be http://billr.s3.amazonaws.com/J7W5uY http://billr.s3.amazonaws.com/J7W5uY instead of http://billr.s3.amazonaws.com/01C03E08-4CFD-4709-87C9-BB60FD141132 http://billr.s3.amazonaws.com/01C03E08-4CFD-4709-87C9-BB60FD... - so bit.ly wouldn't be needed. The suggestion elsewhere in this discussion to encode the entire bill in the url is probably the optimal solution though. With a bit of caching it's probably the cheapest you could run your system (sans S3).