Not to be confused with https://remotestorage.io/
Show HN: RemoteStorage – sync localStorage across devices and browsers
31–40 of 69 posts
Re: Show HN: RemoteStorage – sync localStorage across devices and browsers
#32Very cool overall but the sync->async change means you can't always use it as a drop-in replacement. I assume it's making network calls in those cases which will take significantly longer that local writes. I wonder if something could be done so that it write the data locally and kicks off something async in the background to sync it up to the backend. Maybe with just a timestamp in case you go offline to handle conf…
Good question. I like the idea of having a configuration that includes optimistic writes and perhaps even reads from localStorage for projects that have very low latency/unstable network requirements. That being said, the server is blazingly fast as it leverages Redis and Fastify under the hood. In most of my testing, even on WiFi in SF with a server in Oregon, I would achieve <20ms reads/writes.
I’m tempted to rewrite the backend in lambda+dynamoDB for a completely serverless backend (though for anything serious you’d probably want provisioned lambdas to avoid the cold start).
Re: Show HN: RemoteStorage – sync localStorage across devices and browsers
#33Earlier quoted context omitted.
Good question. I like the idea of having a configuration that includes optimistic writes and perhaps even reads from localStorage for projects that have very low latency/unstable network requirements. That being said, the server is blazingly fast as it leverages Redis and Fastify under the hood. In most of my testing, even on WiFi in SF with a server in Oregon, I would achieve <20ms reads/writes.
Totally fair point and I understand that as-is it’s way simpler than what I proposed. I just know there are places I have to change a whole chain of functions from sync to async to use this (not the end of the world). I’m tempted to rewrite the backend in lambda+dynamoDB for a completely serverless backend (though for anything serious you’d probably want provisioned lambdas to avoid the cold start).
Ideally we have as many different server and client implementations as possible in the monorepo.
Re: Show HN: RemoteStorage – sync localStorage across devices and browsers
#34Re: Show HN: RemoteStorage – sync localStorage across devices and browsers
#35Can this be treated as tracking or storing information about the user in the context of data regulations (like gdpr and similar)?
Re: Show HN: RemoteStorage – sync localStorage across devices and browsers
#36Machine A is online and sets "x" to 1.
Machine B is offline and sets "x" to 2.
Machine B goes online.
What the resulting state on A and on B?
What if initially A was offline and B was online?
Re: Show HN: RemoteStorage – sync localStorage across devices and browsers
#37How are the conflicts resolved? Machine A is online and sets "x" to 1. Machine B is offline and sets "x" to 2. Machine B goes online. What the resulting state on A and on B? What if initially A was offline and B was online?
Re: Show HN: RemoteStorage – sync localStorage across devices and browsers
#38How are the conflicts resolved? Machine A is online and sets "x" to 1. Machine B is offline and sets "x" to 2. Machine B goes online. What the resulting state on A and on B? What if initially A was offline and B was online?