question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Persistent hyperdb in browser

See original GitHub issue

I’ve been trying to get a persistent hyperdb to work in my browser for the past 2 days. The problem is that hyperdb expects random-access-storage based storage as its backend, and the only existing implementation that works in the browser is random-access-memory, which is volatile. This would mean that everytime my browser tab is reloaded it will lose its content and when it connects to peers it will need to be reauthorized.

I’ve tried frankensteining together level-browserify and random-access-memory, but this is very error prone. Is there a backend for hyperdb that supports persistent browser storage? or maybe another way of preserving the key and replaying changes without breaking the database?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
joehandcommented, Jun 6, 2019
1reaction
peacememoriescommented, Jun 6, 2019

I can’t quite remember (I never did finish that project) but I think I had success with random-access-idb

Read more comments on GitHub >

github_iconTop Results From Across the Web

is browser supported? · Issue #20 · mafintosh/hyperdb - GitHub
Hi, I just tried to build a browser app with the following code and I have an issue concerning blake2b-wasm wich uses node...
Read more >
HyperDB – WordPress plugin
HyperDB is an advanced database class that supports replication, failover, load balancing, and partitioning.
Read more >
How to deploy HyperDB – Page 3 - The WP Guru
Easy: open your browser and (hopefully) see your website in full glory. Now head over to your SSH terminal and switch one of...
Read more >
Advanced Database classes for WordPress - Mustafa Uysal
Let's talk about WordPress' advanced database classes. I'm explicitly mentioning HyperDB, but there are other alternatives/forks out there;.
Read more >
HyperDB failover Delay - WordPress Stack Exchange
We are testing out hyperDB as a solution for automated DB failover for wordpress. The environment in question consists of 2 Backend DBs....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found