Skip to content

Conversation

0xYasser
Copy link

@0xYasser 0xYasser commented Apr 26, 2023

Instead of using local MongoDB, using a cloud DB is more reliable. This PR adds support for CosmosDB.
This PR adds support for Azure Cosmos DB.

  • Add cosmosdb_connection_string and cosmosdb_database_id in config.yml
  • update bot.py line 34 to be import cosmosdb as database

Upon using this DB. No need to use Docker at all. Use Github CI/CD to deploy your solution to any cloud provider. But the DB need to be in Azure.

To maintain backward compatibility we need a migration script MongoDB --> cosmosdb.

@0xYasser 0xYasser changed the title add support for cosmos db add support for cosmos db cosmosdb Apr 26, 2023
@dontsovcmc
Copy link

@0xYasser maybe you should use abstractdb to choose db your want? see this pull request: #217

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants