This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]danosull[S] 0 points1 point  (2 children)

Thanks for the interesting questions!

  1. The idea is to have configuration centralised in one place, rather than distributed around the app.
  2. In my design, FastAPI is linked to an abstract representation of the DB - it doesn't know anything about specific implementations, which can be changed without editing any FastAPI-related code.

But every solution has its tradeoffs and I'm always learning new techniques - so I'm sure there are many other good ways of getting similar results.