3 ms·
IMO it's dead easy to create APIs from a database schema, where that schema underpins your monolith and you're opening said monolith up to the outside world, an
by abraae 10y ago
IMO it's dead easy to create APIs from a database schema, where that schema underpins your monolith and you're opening said monolith up to the outside world, and you don't really care too much what goes on out there.
But if you're building a system which is not a monolith, and instead is made of up of, say, 20 services, then putting good boxes around those services and defining the lines that connect them (the APIs) is an essential prereq to designing the databases that sit inside the boxes.
(Though really what's happening, as always, is you're doing it all in parallel, just with more emphasis on the higher level stuff).
- wvenable 10y agoI can't really disagree with that. I usually design micro-services the same as do monoliths; it's just the client is different (another service).