Posts

Showing posts from November, 2024

Azure AI Document Intelligence: Processing an Invoice and Saving it in Azure SQL Server Database using Azure Functions

Image
In this article, we will understand the Azure AI Document Intelligence Service to process the invoice. We will implement the document processing using Azure AI, Azure Function, and Blob Storage. The following figure shows the complete implementation. Azure AI Services Microsoft Azure AI is a comprehensive suite for Artificial Intelligence services and tools provided by Microsoft Azure. This service helps organizations and developers to build, deploy, and manage AI solutions at scale. Azure AI is designed to be scalable and flexible that make it suitable for designing and developing wide range of applications from simple chatbot to large scale complex enterprise application like Healthcare, Logistic, Data Science, etc. For more information on Azure AI please visit to this link . Azure AI Document Intelligence Azure AI Document Intelligence is a powerful service that uses advanced machine learning to extract text, key-value pairs, tables, and structures from documents automatically and a

ASP.NET Core 9: Injecting Keyed Service In Middleware

Image
 .NET 9 is finally released and hence ASp.NET Core 9. You can download it from this link . The ASp.NET Core 9 have several features and some of the features are as follows: Performance gain to Minimal APIs OpenAPI document generation Keyed Services in Middleware ... and many more These new features are helpful for modern applications with respect to performance improvisation and optimization. In this article, we will focus on accessing Keyed Service in ASP.NET Core Middleware. Keyed services are introduced in ASP.NET Core 8. This feature provides a robust way to manage multiple implementations of the same interface. These implementations can be registered and resolved using the AddKeyedService() extension method. The code shown in Listing 1 the Keyed service Registration in ASP.NET Core Service Containers. services.AddKeyedService<IAppService, AppService1>("AppKey1"); services.AddKeyedService<IAppService, AppService2>("AppKey2"); Listing 1: Keyed Servi

React.js: Using the "useTransition()" hook to draw the self-updated chart

Image
The React.js library is improvising with its power and provides several features to design feature rich composable applications. The hooks   are the most important features of this library. These hooks are used for state updates, side-effect handling, context data sharing, etc. In React 18 the useTransition() hook is introduced.  The useTransition() Hook The useTransition() hook is a React hook that helps to handle state updates in a non-blocking manner. This is particularly useful when dealing with asynchronous operations like API calls or expensive computations. This hook helps to prevent the UI freezes. We use this hook to update the state without bocking the UI.      The useTransition hook does not take any parameters. The useTransition returns an array with following two items: The isPending flag that specifies whether there is a pending Transition The startTransition function, this help to mark a state update as a Transition. The startTransition does not return anything.  The use

Azure Blob Storage: Streaming the Azure Blob Storage Videos using Shared Access Signature (SAS) Token in the Blazor Web Application

Image
In this article, we will implement an access of the Videos stored in Azure Blob Storage using SAS Tokens and play these videos in Blazor Server Applications without downloading them. The Azure Blob Storage is a scalable, cost-effective, and secure object storage solution for the cloud. We can storage binary files like documents, videos, spreadsheets, etc. in Blob storage and we can access them as on when we need it. The scalability feature of Blob storage helps to store and access large amount of unstructured data that is encrypted at rest and in transit using Microsoft Entra ID as well as with Role-Based Access Control. The Blob storage offer Durability that is designed with geo-replication options. The Blob storage offers Multiple storage tiers like Hot, Cool, and Archive to optimize costs based on data access patterns.     The Common Uses of Blob Storage are as follows: Data Lake for Data analytics needs. Content Storage and Delivery to serve documents, media files as well as image