3 ms·
That's interesting, I've never heard of a stateful microservice repackaging itself into a library that directly reads/writes to the database. One of the main ad
by whack 6y ago
That's interesting, I've never heard of a stateful microservice repackaging itself into a library that directly reads/writes to the database. One of the main advantages of a service middleman is encapsulation, and enforcing rules on what database operations are permitted.
The article mentioned that there are many different teams using this service/library. With the library approach, each of these teams has full permissions to the database. As long as they all remain disciplined and only ever access the database via the library, this should be fine. But I wonder how long it'll be before another bright developer somewhere realizes that they can write stuff directly to the database, in completely unintended ways, by bypassing the library.