Eagles-DevOps / MiniTwit

2 stars 2 forks source link

Move to new DB engine #176

Closed rasmus-bn closed 7 months ago

rasmus-bn commented 8 months ago

We should decide on:

Suggested solution:

  1. Take snapshot of the SQLite DB
  2. Publish Snapshot to new DB
  3. Point application to new DB

As Helge advised us. First we should implement monitoring before moving database.

177 #179 need to be resolved before

rasmus-bn commented 8 months ago

We decided on using a managed DB service.

Postgress vs MySQL is still an open question

danielgron commented 8 months ago

I would argue that there are subtasks that are not blocked:

Infrastructure as code for create the DB.

Create postgresDbFacade.go

rasmus-bn commented 8 months ago

This might be overkill but in order to isolate the DB from the public network it could be a option to put in a virtual network (VPC) together with the VM and then only expose the VM to the internet.

https://docs.digitalocean.com/products/networking/vpc/concepts/best-practices/

Downsides of this:

Romes8 commented 7 months ago

Closing since we have a new DB up and running