Encryption & Multi Tab Support #1390
Unanswered
alexanderbartels
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I am currently exploring different options to re-build my local data storage for a react (+NextJS) application. Our users have the application open in multiple tabs at the same time. Our use case is online first as we always need a remote approval if an action is executed. But we want to have a nice user experience for the read-path and want to prevent most of the current server load that is caused by reloading the same data all the time again.
We're planning to implement a web socket protocol to notify the clients about data changes to trigger a new pull of data. As far as I can see SignalDB offers the perfect API for that use case with
registerRemoteChange
andpull
methods via aSyncManager
.But is there any build in support for Multi Tab Usage to re-load the changed data only once and prevent that the reload happens on every active tab?
The data we want to store can also contain personal data that should not be stored in plain text. Has anyone tried to use the web crypto API to store the data encrypted to localStorage, indexDB or Session Storage? As far as I understand the collections, the items are hold in memory anyway and hence the overhead of the encryption should not negatively affect performance.
Thanks!
Alex
Beta Was this translation helpful? Give feedback.
All reactions