Search code examples
coldfusionazure-cosmosdbcoldfusion-2016

How to connect coldfusion with azure cosmos db


We have an application developed with coldfusion. We want to use cosmos database as backend. Please help me with this.


Solution

  • Azure Cosmos DB is No-SQL database like MongoDB which doesn't have a JDBC driver. So please do not treat it the same as a relational database.

    Now, Cosmos DB has several quickstarts. These are the SDK options:

    Screen shot of Quickstarts

    However, it also supports REST API to satisfy any development languages, as long as you can build an http request. You can refer to these two REST samples:

    1. Using REST for CRUD operations in Azure Cosmos DB

    2. How do I generate the rest authorization token for cosmos db in python?

    BTW,the most important thing in Cosmos DB REST API is the authorization header. Please refer to this detailed document.