-
Notifications
You must be signed in to change notification settings - Fork 32
Use server-side rendering in case wrtc peers can't be reached #103
Comments
Don't forget that server-render gets SEO, if that's something that is a priority. |
If the main concern is supporting most browsers and compatibility with the non-webrtc network a solution would be to run websocket <--> discovery-swarm gateways and use a websocket join the swarm locally in addition to webrtc. Some nice features about this
For SEO you'd wanna cache the metadata feed server side (a dat with the history, but no content) and render that. |
+1 to the websocket transport, that's a great idea. I can see a bunch of implications though with server side rendering for SEO: Google crawls a lot, basically forcing dat.haus to replicate everything eventually. Also Google pulls response time into their ranking, so an archive that currently isn't seeded might lower dat's overall ranking. Do we think those are concerns to us? AH! Maybe only do server side rendering for archives that are paid to be kept alive? |
Yeah, I can't imagine doing server-side rendering without some kind of cache, was imagining it would be for "partner" level users/orgs that want their data found. |
ogd: "on github when you click a subfolder it makes a new page request for that subfolders view. so i guess we would do the same, as opposed to sending the file metadata tree down to the client and client rendering it" |
Another note on this (per IRC conversation with Karissa, Max and I on 7/22):
|
Yeah, this sounds great. Also having server-rendering forces us to have nice url schemes so people can link to particular file or subdir. |
i think this larger issue is captured by a bunch of smaller issues, going to close this |
There are many ways to do this, and we could experiment. The essential problem is that
dat.land
only looks for client-side connections (using web rtc) right now, but there are many problems with web rtc:We can use dat.haus to do this server-side fetching for us, which is a composable api to the dat network https://github.com/juliangruber/dat.haus if wrtc connection can't be reached. There are many ways we could try to prioritize connections:
Before we integrate this into dat.land, we probably should look into how much we care about bandwidth/storage costs on dat.haus
The text was updated successfully, but these errors were encountered: