Re: [dev] running a shortlink provider

From: Spenser Truex <>
Date: Fri, 26 May 2023 15:24:45 -0300

On 23/05/26 07:52PM, syg wrote:
> Hi,
> Just my two cents, but why not just store the link destination, even
> better, the HTML with the correct re-direction, in a file named
> according to the hash. You can then just serve it as-is. No lock
> problem. No database required. O(1) complexity.
> Of course this is only valid for a personal, non-public use since that
> strongly limits the number of links you can have.

If you edit your HTTP server instead you can send 300 requests and avoid
having a lot of unnecessary bandwidth usage.

> Also, this is trivially extensible to a pastebin.
> - syg

CAEE B377 FC82 BAF9 102C  D22F C5CE D003 1AA8 E281
Spenser Truex

Received on Fri May 26 2023 - 20:24:45 CEST

This archive was generated by hypermail 2.3.0 : Fri May 26 2023 - 20:36:08 CEST