Integration with Azure Services
Explore how to integrate Azure services like Cognitive Search, Synapse Link, Apache Kafka connectors, and Data API builder with Cosmos DB. This lesson helps you understand how to enhance database search, analytics, event streaming, and API creation to build more complex and efficient cloud-native applications.
We'll cover the following...
Introduction
While Cosmos DB is a powerful tool, sometimes we might need to extend its capabilities by integrating it with other services. Luckily for us, if said services are in Azure, the integration is relatively easy, saving research, development time, and in some cases, money.
In this lesson, we’ll see just a few examples that might be handy on complex projects.
Azure Cognitive Search
Azure Cognitive Search is a fully customizable, smart search engine. This is particularly useful when searching the whole database since, in Cosmos DB, we are limited by partitions.
In a search service instance, we can create multiple indexes. When creating an index, we are asked the following:
A data source and a query:
We can select a Cosmos DB container
To get all new documents, we can use the following:
SELECT * FROM c WHERE c._ts > @HighWaterMark
Optional cognitive skills:
It uses AI for spell check and related words ...