ordhook
ordhook copied to clipboard
upload inscription content to a CDN
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/contentto the CDN asset URI
This would help us delegate rate limits to the CDN and reduce psotgres DB load.
This feels like a higher priority, as it gives a level of flexibility I'm not aware of in other APIs.