NaimKabir / personal-golinks

Personal shortlinks completely managed in a browser extension.
MIT License
0 stars 0 forks source link

Add ID reservation and managing RAM instead of disk #15

Closed NaimKabir closed 1 year ago

NaimKabir commented 1 year ago

Previously we let Shortlink IDs increment endlessly—now we strict it to a limited range and manage ID reservation by keeping track of it.

We also minimized the number of writes and fetches from the chrome API—I was unknowingly hitting hidden API limits that would unpredictably halt execution and make behavior flaky. Now that we deal almost entirely in RAM except for writes and deletes (and a big initial fetch), this has been mitigated.