Coldfusion/Lucee/CFML & Cosmos DB

Last year I experimented with Azure’s Cosmos DB. It didn’t end up getting used but I had a simple proof of concept that worked and I thought others might find it useful as an introduction to using Cosmos DB with Lucee or Coldfusion.

This is a very simple demo and the code is not structured how you would in a real-world project, but the aim was to make the code as simple to understand as I could.

As Cosmos DB is accessed through an API this demo is essentially a function that interacts with its API and its particular requirements. I’ve only covered the basic functions of CosmosDB in this demo but all other functions will be a case of reading the manual and updating the functions.

https://github.com/dominicr/CFCosmosDB

Written by

Solution Architect based in Oslo https://www.linkedin.com/in/dominicrobinson

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store