Entity Framework Core is a lightweight, extensible, open source, and cross platform version of the popular Entity Framework data access technology. It really helps the developer to build applications which access database easily. But in most cases, we may cache some results which...
This article introduces KustoBuffer, a high-performance non-blocking data buffering component designed to optimize bulk write performance to Kusto databases. The design draws on the implementation approach of ArrayDb, with its core mechanism employing a double-buffering strategy that leverages concurrent queues to decouple data writing from persistence. The system controls the write flow through engine tasks and incorporates a cooling engine mechanism, which dynamically calculates sleep time based on the amount of data in the buffer, thereby balancing write frequency against data fragmentation issues. The article provides detailed code implementations, including thread-safe buffer exchange logic, a logarithmic-function-based sleep time algorithm, and synchronization methods that ensure eventual data consistency. This solution effectively avoids lock contention in high-concurrency scenarios, improves system throughput, and prevents resource waste through fine-grained state management, offering a robust and efficient solution for large-scale data write scenarios.
Before starting, you need your git client configured. var credentials = new VssBasicCredential(userName: string.Empty, password: this.config.Key); this.vssConnection = new VssConnection(new Uri(this.config.BaseUrl), credentials); if (!string.IsNullOrWhiteSpace(this.config.Key)) {...
Sometimes, we need to provide key values as environment variables for Azure app service, like database connection strings. In some cases, we might need someone to collaborate managing the app service. However, with app service environment variables access, he will also be able to...
Sometimes we might need to host a website in Azure. And there are so many options, like storage account, app service. But none of those supports wildcard HTTPS and auto renew. An ideal configuration shall be static which means that it will never crash even when no one maintains i...
Recently, when we are trying to distribute video from Azure Media Service, we noticed that our video can't be played in iOS mobile devices. But the same web page plays normally in Android devices. There are multiple reasons for iOS devices to load and play Azure Media Player. As ...
This blog shows a tutorial about how to download any Azure media service video or live stream. Before starting, you need to have FFmpeg installed. No matter you are using Windows, Linux, or Mac OS. Download latest FFmpeg here: https://ffmpeg.org/download.html After installing it,...
Ask the user to select the Azure cloud under which he runs the Azure CLI: login azure() { no cloud=true while $no cloud; do echo 'Select your cloud:' az cloud list output table read p 'Enter the name:' cloudName az cloud set name $cloudName && no cloud=false done az account show ...
This code example indicates how to build an app that supports Microsoft account OAuth authentication. Before coding, we gonna create an app in your Azure portal first. https://portal.azure.com The name is your app's display name. Select your app can access accounts in any organiz...
The Azure command line interface (CLI) is Microsoft's cross platform command line experience for managing Azure resources. The Azure CLI is designed to be easy to learn and get started with, but powerful enough to be a great tool for building custom automation to use Azure resour...