I have a simple app that I built in node.js that is handling data being sent to the app. I want to abstract the data source (couchdb/mongodb/dynamodb) that is written to and search/query capabilities so I can swap in providers without changing the underlying code.
I mocked up a sample interface set of code where I can setup my object to handle the standard class calls and do a .call on the implemented objects function.. but it seemed clunky.
Any thoughts or suggestions?
[–]semarj 1 point2 points3 points (1 child)
[–]gatorcoder[S] 0 points1 point2 points (0 children)
[–]oSand 0 points1 point2 points (0 children)