truggeri / Books.Service.Transaction

Service for transactions in the Books project.
MIT License
0 stars 0 forks source link

Add database storage #3

Open truggeri opened 6 years ago

truggeri commented 6 years ago

Need to add database storage either with hosted solution (AWS Dynamo DB) or a solution that can run locally too (CouchDB ... ?).

truggeri commented 6 years ago

About CouchDB

CouchDB in Python from Cloudant

Deprecated package

truggeri commented 6 years ago

A few notes from my time working on this on the plane

The instance of CouchDB that's on my local isn't really ready to roll. It doesn't have any dbs or data. I need to resolve the pattern for how the application will handle this overall. The idea is:

Actions

  1. Resolve how the Transaction service expects to retrieve user information. This should be something abstract for now that will be fleshed out more with the authentication microservice. The real requirement here is that a database key is passed into the Transaction service ("which db should I use?")
  2. Flesh out the abstraction layer between db and Transaction app. What I mean here is, there should be a module that allows for simple calls like add transaction, update transaction, remove transaction list transactions that perform the necessary db calls. This is where I'll use Cloudant for now.