Integrating Azure Functions with Cosmos DB SQL API in .NET Core 2.2

Zach Gardner .NET Core, API Development, Articles, Azure, Cloud, Development Technologies & Tools, SQL, Tutorial Leave a Comment

I am working on a project that leverages both Azure Functions as well as Cosmos DB. In trying to get both of these components wired together, I found that there are very few examples that work with the most recent versions of these components. I also saw examples that could work at a small scale, but donโ€™t show industry-standard best practices, and would lead to performance issues if deployed in an environment with any meaningful traffic.

To that end, I put together this blog post showing how to set up an Azure Functions project in .NET Core 2.2 to integrate with Cosmos DBโ€™s SQL API using its native tooling.

Building a Spring Cloud Native Microservice Application on Azure, Part 1

Zach Gardner Articles, Azure, Cloud, Development Technologies & Tools, Java, Microservices, Spring Leave a Comment

The big three cloud providers (AWS, Azure, and Google Cloud, in that order) have their various strengths and areas of expertise. Most large organizations though typically pick one cloud provider for their cloud computing needs. This works well if youโ€™re a Java shop thatโ€™s on AWS, or a Microsoft shop on Azure. But what if youโ€™re on a large Java project in an organization that wants to use Azure? Youโ€™re in luck.

Microsoft Azure has come a long way, and is very supportive of non-Microsoft technologies. The proof though is in the pudding. Which is where this blog post comes in. I take Josh Longโ€™s Bootiful Microservice Services, a great starting point to get a cloud native Spring microservice application up and running, and show how it can be run on Azure.

This first blog post will be all about setting up our basic microservices by walking through the various parts of Joshโ€™s example application, with some best practices and patterns that Iโ€™ve found to be effective. Rather than a simplistic ToDo application, weโ€™ll be basing our application off of my favorite bagel shop in New York, Original Bagel Boss in Hicksville, to manage its orders, inventory, etc. If we can run a bagel shop on a Spring application running on Azure, and keep customers happy and full of carbohydrates, then it proves out for applications of a similar size and complexity.

Weโ€™ll be staying mostly inside the familiar Java confines, then slowly start working our way out to getting our application deployed to Azure. Then weโ€™ll start introducing additional complexity like Spring Batch jobs, a React front end, etc. A setup this complex will show that Azure is ready for prime time when it comes to running applications in production, even if they are built on non-Microsoft technologies…

Blockchain Development & Consulting Services

Our blockchain expertise spans strategic assessment and enterprise road mapping, enterprise proofs-of-concept, blockchain development and implementation, and the education that your team needs to actualize the benefits from this technology. We have helped our clients in every industry to modernize and can bring that same expert insight and…

Azure Migration Plan

Keyhole Azure Migration Plan How To Migrate on-premise .NET enterprise applications to Azure Intended For CTOs, Directors, and Architects Goal To Get VP of Engineering, CIO, CSO, Legal, and Development Operations Working Together to Migrate the Organization to Azure ▸IntroductionTaking an existing application and migrating it to Azure, or any cloud offering, is a serious undertaking. Enterprise applications can power …

Azure Migration & Consulting Services

Keyhole Software offers a range of services related to Microsoft Azure, helping clients leverage the capabilities of the Azure cloud platform. Services include Cloud Migration: Migrating applications and infrastructure to Microsoft Azure by assessing the existing environment, developing a migration strategy, and executing the migration process while ensuring minimal disruption to business operations. Azure App Services: Building and deploying web & mobile applications using Azure App Services, designing and implementing scalable and secure application hosting environments. Architecture & Design: Helping clients design scalable and efficient architectures on Azure, working to understand requirements and design architectures that leverage various Azure services to meet specific needs. Cost Optimization: Optimizing Azure infrastructure for cost-effectiveness by assessing resource utilization, identifying cost-saving opportunities, and providing recommendations for optimizing Azure usage and billing.