Better HN
topnewbestaskshowjobs
Log inSign up

_10x_dev

1 karma · joined Dec 20, 2018 (7y ago) · 1 submissions

Submissions

comment 7y ago · link · parent

“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.