by gfodor · 8y ago · 0 comments
We are so far from that reality that it seems obvious there is still a ton of work to do. You can see bits and pieces of solutions but if your product asks me to define indexes, tune queries, determine sharding keys, write against computer-centric (vs human-centric) APIs, cannot deal with change easily, requires babysitting, or falls over after hitting some incidental tipping point relative to the resources available to a single machine, you've not hit it.
I have not used Google Spanner but at 30k/ft it seems like the closest thing out there to the idealized case -- but being closed source and centralized it is not really a "solved problem" imho.
Using the graphQL API requires no knowledge of the backend data store. Therefore, clients and consumers of your API do not need to know about shards, indices, SQL queries, etc.
If you have an existing DynamoDB table, you can automatically generate a GraphQL schema/API from it too.
https://aws.amazon.com/appsync/
disclaimer: i work on aws appsync
Why is RDBMS tooling so completely shite.
I have an IDE that can index several million lines of code and apply accurately timely context dependent intelligent code completion - I have yet to find a good way to debug a MySQL stored procedure (I hate them, I inherited them, except for very simple use cases they are getting slow replaced).
I would use it for replicated / distributed storage for data frames (e.g. R or Pandas), which is somewhat related to my other request [1]
The difference here is that there is structure to the files.
I'm toying with the idea of build a relational-centric language (and maybe storage) because I think the same.
I wanna to create a table/relation as easy as:
customers = [id:int, name:str; 1 "jhon"; 2 "doe"]
in memory. Other things as triggers, PK, FK, views, etc obscure the simplicity of the relational model and make people say weird stuff as "relational database not scale" or "are too inflexible".I think exist a LOT of easy things to enrich the model and make it more usefull. For example, is ok to say:
inv = [id:int, lines:Lines; 1 [id:1, qty:1, price:$10]; 2 [id:1, qty:3, price:$40];]
Is totally ok to nest relations on relations (this alone could make wonders for ORM :) ).Oh, this also is something that need a better way!
RDBMS are too coupled. I remember to ask if I can ditch the SQL parsing of sqlite and call directly the storage (so I can put my own query engine on top) and that was like if I'm nuts!.
I think is possible to build a RDBMS that is semi-plugable. To make things as swap parts of the engine on "user land". If someone for example wanna create a new kind of index is must be as easy as write:
fun CoolIndex.get(key) -> Value
and plug it into the engine just fine. I think do something like flask/django-esque framework where is possible to have custom fields, validations, middlewares, etc on top of a core storage layer and a default implementation.So, instead of go with redis or something else I could build my "redis-like" api INSIDE the engine and get the advantages of locality, integrity, etc.
ie: See a RDBMS as an API Backend.
This could be model (instead of MVC in common web frameworks) as CQRS or something similar.