Toevallig heeft Weerman de PDF-versie hiervan op zijn computer staan. Dat zegt, al in 2011:
Nearly every application has to store data, and often lots of fast-changing data. Until recently, most applications stored their data using relational database management systems (RDBMS for short) like Oracle, MySQL, or PostgreSQL. Recently, however, a new paradigm of data storage has emerged from the need to store schema-less data in a more effective way — NoSQL.
First things first, welke dappere dodo heeft O’Reilly op de omslag van deze titel en hoe wordt deze bereid:
The animal on the cover of Redis Cookbook is a mouse opossum.
Wikipedia:
De aeneasrat is een kleine buidelrat. Hij heeft een korte, fluweelachtige vacht, die licht gelig tot grijzig bruin van kleur is. De buik is roomwit van kleur en rond de ogen bevindt zich een zwart masker. De grijpstaart is kaal.
De aeneasrat leeft solitair. Het vrouwtje duldt alleen een mannetje in haar buurt als zij in oestrus is. De paring kan meerdere uren duren.
Het recept? As a young man I lived on a dirt road in a three-room cabin allegedly built by lesbians:
Melt butter in frying pan and add onion. When onion begins to brown, add chopped liver of possum and cook until tender and well-done. Add breadcrumbs, red pepper, steak sauce, egg, salt, and water to moisten mixture.
Stuff the possum with the mixture and sew up the opening. Put in a roasting pan, add 2 tablespoons water, and roast in moderate oven (300–350 degrees) until meat is very tender and a golden brown.
Baste the possum frequently with its own fat. When it is done, take from oven, remove stitches, and put possum on a hot platter. Skim the grease from the drippings and serve gravy in a separate dish.
As we said earlier, the questions boil down to what your data looks like and what your usage pattern is:
NoSQL databases such as Redis are fast, scale easily, and are a great fit for many modern problems.
But as with everything else, it is important to always choose the right tool for the job. Play to the strengths of your tools by looking at what you’re storing, how often you’ll access it, and how data (and its schema) might change over time.
Once you’ve weighted all the options, picking between SQL (for stable, predictable, > relational data) and NoSQL (for temporary, highly dynamic data) should be an easy task. Doing this kind of thinking in advance will save you many headaches in future data migration efforts.
No NoSQL:
There are a lot of competing database structures out there, like document, tree, tabular, relational… it just seems to go on. But there is one structure that rules them all – the graph. With graphs, you can make any other data structure.
And it’s at the heart of Gun’s paradigm …
GUN is a small, easy, and fast data sync and storage system that runs everywhere JavaScript does. The aim of GUN is to let you focus on the data that needs to stored, loaded, and shared in your app without worrying about servers, network calls, databases, or tracking offline changes or concurrency conflicts.
Distributed
GUN is fully decentralized (peer-to-peer or multi-master), meaning that changes are not controlled by a centralized server. A server can be just another peer in the network, one that may have more reliable resources than a browser. You save data on one machine, and it will sync it to other peers without needing a complex consensus protocol. It just works.
Offline-First
When a browser peer asks for data, it’ll merge the reply with its own data using a CRDT, then cache the result. This means that:
- The next time the browser asks for that data, the reply is instant, even when offline.
- Data is replicated on each browser that asked for it.
- If your server fails, you can still recover your data from the browsers.
Quick Start, Converse Tutorial, Build a realtime Chat App in minutes! Succes:
GunDB, a.k.a Gun, a.k.a Gun.js:
GitHub - amark/gun: An open source cybersecurity protocol for syncing decentralized graph data.
https://gitter.im/amark/gun
Show HN: Gun v0.1.0 – The Easiest Database Ever | Hacker News
GunDB, Venture Backed and Decentralized with Mark Nadal (Changelog Interviews #236) |> Changelog
https://medium.com/a-weekend-with/a-weekend-with-gun-a61fdcb8cc5d
Data Modeling with GunDB