How to use Azure functions with MongoDB Atlas in Java

Click for: original source

In this article, we are going write the function as a service (FaaS) — i.e., a serverless function that will interact with data via a database, to produce meaningful results. FaaS can also be very useful in A/B testing when you want to quickly release an independent function without going into actual implementation or release. By Mohit Sharma.

The article then explains following steps:

  • Serverless function: Hello World!
  • Installing the Azure plugin
  • First Azure function
  • Deploying and running
  • Connecting the serverless function with MongoDB Atlas
  • Adding the Azure function IP address in Atlas Network Config

With MongoDB Atlas on Microsoft Azure, developers receive access to the most comprehensive, secure, scalable, and cloud–based developer data platform on the market. Now, with the availability of Atlas on the Azure Marketplace, it’s never been easier for users to start building with Atlas while streamlining procurement and billing processes. Code examples and screenshots are also included. Nice one!

[Read More]

Tags nosql java azure serverless