Skip to content

Changing DBMS

Cory Gehr edited this page Apr 24, 2020 · 1 revision

By default, the CovidSafe Backend uses Azure CosmosDB due to its native ability to scale, making management fairly simple.

Adding different database providers

This project utilizes the repository pattern to quickly enable support for different database management systems. In theory, most developers would only need to do the following:

  1. Create a new class which implements the IMatchMessageRepository interface completely.
  2. Build any required helper classes for connecting to the new database provider.
  3. Add new settings required for things like connection strings.
  4. Update Startup.cs under the Database Configuration region to ensure .NET Core's native Dependency Injection services utilize the added implementation.

Contents

  1. Home

Deployment

  1. Quickstart

Usage

  1. API Usage
  2. Content Formatting

Advanced Topics

  1. Changing DBMS
  2. Load Balancing

Clone this wiki locally