2 ms·
“This is one of the reasons why building on top of the old API wasn’t an option. There was very little separation of concern in the original API and MongoDB spe
by _10x_dev 8y ago
“This is one of the reasons why building on top of the old API wasn’t an option. There was very little separation of concern in the original API and MongoDB specifics could be found even at the controller level. As a result the task of adding another database type in the existing API was too risky.“
This bit sounds like a cautionary tale about the importance of a layer and well structured API. There’s no reason why details about your data store should leak into an API Controller.