3 ms·
the API is literally a query language for the DB No, SQL is literally a query language for the DB. The API is the contract you define for how people with inte
by adamkl 7y ago
the API is literally a query language for the DB
No, SQL is literally a query language for the DB.
The API is the contract you define for how people with interact with your application. While some people may choose to model this after their underlying database, conceptually, they are very different.
On small applications, maybe you can get away with treating them as one and the same, but for longer-lived applications which need to integrate and co-exist with other systems/services, that choice can come back to bite you.
I'm not saying you shouldn't/can't treat them as the same thing, just be sure you know the trade-offs and long-term repercussions.