Badger-Finance / badger-api

Serverless API for Badger DAO protocol.
https://api.badger.com/docs
MIT License
5 stars 5 forks source link

refactor(ddb): DDb models, and connection #1152

Open NamelsKing opened 2 years ago

NamelsKing commented 2 years ago

Background

Sometime it's hard to find model u need. It can happen that we dont use some of them. And one of the main issues here is to look, mb we can optimize connection to ddb, to save some time in lambdas.

Tasks

NamelsKing commented 2 years ago

https://github.com/Badger-Finance/badger-api/pull/1156 pt1

okjintao commented 2 years ago

we should consider probably moving any kind of historically persisted datas into their own packages,

or some other naming to help lean this repo some

okjintao commented 2 years ago

we could probably remove things such as the indexers from here as well and have them run separately to keep the api truly just an api and allow table management either via other tools or via a separate serverless build.

wonder if this helps at all in our migration or possible data sharing for entities such as rewards or otherwise