Skip to content

Commit

Permalink
Add ADR 002 which partially pivots on ADR 001
Browse files Browse the repository at this point in the history
  • Loading branch information
chao-xian committed Aug 11, 2023
1 parent 4e66d1c commit a4d393d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/ADR/002-pivot-how-we-port-to-postgres.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ADR 002 - Pivot on how we port to PostgreSQL

## Context

This partially reverses the approach outlined in [ADR 001](001-porting-to-postgresql.md). We were going to piggy back on work by the Publishing Team who are building a proxy app to split requests between old and new router/router-api and content-store. However they've hit several issues and can't get it working.

On recommendation from the Tech Lead of the Platform Engineering team we are going to just use feature flags to manage the roll out.

For feature flagging we will check for the presence of an environment variable. The default behaviour will be to use MongoDB if the variable isn't set or does not have the value "postgres". The variable should be called "ROUTER_USE_DB" and the values "mongo" or "postgres" to be absolutely clear.

## Status

Accepted

0 comments on commit a4d393d

Please sign in to comment.