Hacker News new | ask | show | jobs
by rishav_sharan 2052 days ago
What about the database? All these Jamstack articles always seem to skip past a db in their examples and I have never seen an "app" without an associated database.

Or is the KV store supposed to act like an app database?

4 comments

I worked a bit on this space, mostly for https://simplesql.redbeardlab.com/ (not running at the moment, but if folks would like to test it, please leave your email or contact me) and https://redisql.com

KV is the simplest thing you can provide, but in general it is hard to build applications on top of it, especially with changing requirements. KV means basically that all your query and way to interact with the storage must be well-known in advance. While with SQL, all your data is there and it is fast to add an index.

The problem with the solution above are the wrapper for libraries, nobody want to write a django or rails app, and integrate with an HTTP service for the database.

But maybe people are willing to do so for micro...

This is a great point and one reason I am left scratching my head when considering building applications on the JAM stack.

We are working on a solution to this with WeBase [1] and I'd love to see us do an integration with Netlify here where you build with WeBase and host on Netlify (and get automatic API integration with your data models).

[1] https://www.webase.com

you can achieve that with netlify build plugins but it is still a fairly basic stage right now - get in touch with their DX team!

(disclaimer, i worked there)

what's the pitch vs an airtable wich i already use ?
Airtable is a great platform and they have built a nice UI on top of their data modeling tools. But... they don’t allow customization of the UI. WeBase has the same power of Airtable for data models combined with the ability to create custom views like you would do with Webflow.
Yeah there is a KV store which is more lower level and an ORM like library on top, check this: https://github.com/micro/dev/tree/master/model
Founder of Micro here. Yes the key-value store is basically like a crud database. We're working on some modelling on top of that and something we'll present more like a document database. Watch this space.
Will it be possible for you folks to add a Realworld example for Micro? https://github.com/gothinkster/realworld

it will help someone like me, sitting on the fence about this whole idea, a better starting point for using Mirco for my use cases.

Hi, thanks for asking. This is the first time I've seen the project realworld so please excuse my ignorance, I'm not in the JS community. We will have a look and try to get around to this. Right now you can look at https://github.com/micro/services for any of our backend examples.