ordhook icon indicating copy to clipboard operation
ordhook copied to clipboard

upload inscription content to a CDN

Open rafaelcr opened this issue 2 years ago • 1 comments

The API could have a configurable option to allow inscription content uploads to a CDN/bucket during indexing. This would mean:

  • When a new inscription genesis is detected, upload its contents to the CDN (also write to local DB as it works today)
  • If there is a re-org that roll backs that inscription, also remove it from the CDN
  • Place a redirect from /ordinals/inscriptions/:id/content to the CDN asset URI

This would help us delegate rate limits to the CDN and reduce psotgres DB load.

rafaelcr avatar Apr 24 '23 16:04 rafaelcr

This feels like a higher priority, as it gives a level of flexibility I'm not aware of in other APIs.

chresko avatar Jul 19 '23 15:07 chresko