[Design Discussion] IPFS is slow, perhaps we need to keep multiple old IPFS addresses in Gun?
IPFS tends to be rather slow. Perhaps we should keep several IPFS hashes, versioned somehow (timestamp?) for each piece of content in Gun? Something like:
{
"example.org": {
"/en/index.html": {
"latest": <hash1>,
"1569263268": <hash1>,
"1569262171": <hash2>,
(...)
},
"/css/style.css": {
"latest": <hash3>,
"1569263268": <hash3>,
"1569262171": <hash4>,
(...)
},
}
}
The hard part is going to be making sure that content from the same deployment is correctly timestamped. So, perhaps instead the format should be:
{
"example.org": {
"latest": {
"/en/index.html": <hash1>,
"/css/style.css": <hash2>
},
"1569263268": {
"/en/index.html": <hash1>,
"/css/style.css": <hash2>
},
"1569262171": {
"/en/index.html": <hash3>,
"/css/style.css": <hash4>
},
(...)
}
}