2 ms·
If you're proposing that web servers should not exist and we should just expose the SQL DB via HTTP: what about when you don't have all of your data in a single
by elnygren 9y ago
If you're proposing that web servers should not exist and we should just expose the SQL DB via HTTP: what about when you don't have all of your data in a single database?
What if I want/need Cassandra, ElasticSearch or MongoDB? An SQL DB is just one place where you have data and there are very valid reasons for using other solutions.
In fact, some people might argue that you want to do everything with event sourcing / kappa and use Kafka + specialised data stores.
GraphQL fits this universe perfectly. It also fits the one where you only use a single SQL DB since a GraphQL query translates quite nicely to SQL with minimal amount of code in between.
- dragonwriter 9y agoUsing SQL as a query language doesn't limit your choice of backend data source(s) any more than using GraphQL does.