Posts

[MS] Is there any difference between String­From­IID and String­From­CLSID? - devamazonaws.blogspot.com

Some time ago, I displayed in tabular form the difference between Uuid­To­String String­From­CLSID , String­From­IID , String­From­GUID2 . But the entries for String­From­CLSID and String­From­IID are identical. So what's the difference between those two? There's no difference. The two functions are functionally identical. So why have two functions that do the same thing? Probably just to provide counterparts to their buddies IID­From­String and CLSID­From­String , which do behave differently, because CLSID­From­String also supports ProgIds. Post Updated on May 27, 2024 at 03:00PM Thanks for reading from devamazonaws.blogspot.com

[MS] C#12 引入主构造函数:简化代码重构 - devamazonaws.blogspot.com

本文翻译于David Pine的这篇文章: Refactor your C# code with primary constructors 作为 .NET 8 一部分的 C# 12 引入了一组引人注目的新功能! 在这篇文章中,我们将探讨其中一个功能,特别是主构造函数,解释其用法和相关性。 然后,我们将演示一个重构示例,以展示如何将其应用到您的代码中,并讨论其好处和潜在的缺陷。 这将帮助您了解这一更改的影响并有助于您决定是否采用该功能 。   主构造函数 1️ ⃣   主构造函数被认为是一项 “C# 日常 ” 的开发人员功能。 它们允许您在一个简洁的声明中定义类或结构及其构造函数。 这可以帮助您减少需要编写的样板代码量。 如果您一直在关注 C# 版本,您可能熟悉记录类型,其中包括主构造函数的第一个示例 。   与记录类型的区别   记录类型 作为类或结构的类型修饰符引入,这简化了构建简单类(如数据容器)的语法。 记录可以包括主构造函数。 该构造函数不仅生成一个支持字段,而且还为每个参数公开一个公共属性。 与传统的类或结构类型不同,在传统的类或结构类型中,主构造函数参数可以在整个类定义中访问,而记录被设计为透明的数据容器。 他们本质上支持基于值的相等,这与他们作为数据持有者的预期角色相一致。 因此,它们的主构造函数参数可以作为属性访问是合乎逻辑的 。   重构示例 ✨   .NET 提供了许多模板 ,如果您曾经创建过 Worker Service ,您可能见过以下 Worker 类模板代码:   namespace Example.Worker.Service { public class Worker : BackgroundService { private readonly ILogger<Worker> _logger; public Worker(ILogger<Worker> logger) { _logger = logger; } protected override async Task ...

Amazon EKS and Amazon EKS Distro now support Kubernetes version 1.30 - devamazonaws.blogspot.com

Kubernetes version 1.30 introduced several new features and bug fixes, and AWS is excited to announce that you can now use Amazon EKS and Amazon EKS Distro to run Kubernetes version 1.30. Starting today, you can create new EKS clusters using v1.30 and upgrade your existing clusters to v1.30 using the Amazon EKS console, the eksctl command line interface, or through an infrastructure-as-code tool. Kubernetes version 1.30 includes stable support for pod scheduling readiness and minimum domains parameter for PodTopologySpread constraints. As a reminder, starting with Kubernetes version 1.30 or newer, any newly created managed node groups will automatically default to using AL2023 as the node operating system. For detailed information on major changes in Kubernetes version 1.30, see the Kubernetes project release notes . Kubernetes v1.30 support for Amazon EKS is available in all AWS Regions where Amazon EKS is available, including the AWS GovCloud (US) Regions. You can learn more...

[MS] 宣布 Java on Azure 开发工具支持 Java on Azure Container Apps - devamazonaws.blogspot.com

在Build 2024 期间宣布, Azure Container Apps 现在可为 Java 开发人员提供丰富的操作功能。(详细内容请参见 本博客 )。 我们很高兴地与大家分享,Azure Toolkit for IntelliJ 为 Azure Container Apps( Java on ACA )提供了支持,并提供了灵活的部署选项。有了这项支持,Java 开发人员可以使用 GitHub 代码库中的源代码或本地工件构建和部署他们的应用程序,用于新的 ACA 应用程序或现有的 ACA 应用程序。这将增强开发人员在云中运行容器化 Java 应用程序的能力,并加强安全态势,更好地调整容器环境的内存配置。 观看下面的演示,构建并部署您的第一个 Java on ACA 应用程序, [video mp4="https://devblogs.microsoft.com/java/wp-content/uploads/sites/51/2024/05/JavaonACABuild.mp4"][/video] 资源 以下是有助于进一步了解 Java on Azure Container Apps 链接列表: Java on Azure Container Apps 概述 Azure Toolkit for IntelliJ 文档 Post Updated on May 24, 2024 at 08:49AM Thanks for reading from devamazonaws.blogspot.com

[MS] Start Simple, Scale Fast: Azure Storage for Distributed Computing - devamazonaws.blogspot.com

Image
Start Simple, Scale Fast: Azure Storage for Distributed Computing Introduction In a recent engagement with a customer, we needed to create a distributed system to efficiently generate and ingest data. We wanted the performance of splitting our workload across many container instances. We also wanted to ensure resiliency if any of those instances fatally crashed. There are many solutions on Azure for accomplishing the scalability and resiliency goals for our system. Azure Storage Accounts are one of the simplest resources on Azure, but simultaneously one of the most useful, and reused building blocks across the Microsoft Cloud ecosystem. Blobs, leases, and queues are fundamental components that enable powerful patterns. Let's dig into why we used Storage Accounts, and why we think they should be ready to go in your Azure toolkit. Example 1: Multi-stage Distributed Workload Consider our two-stage workload. Generation of synthetic data, and Ingestion of that data into another sys...

[MS] Announcing Java on Azure Container Apps Support for Java on Azure Developer Tools - devamazonaws.blogspot.com

During Build 2024, it was announced that Azure Container Apps now offers a rich set of operational capabilities for Java Developers. (Full details on this blog ). We are excited to share that Azure Toolkit for IntelliJ has provided support for Java on Azure Container Apps(Java on ACA) with flexible deployment options. With this support, Java developers can build and deploy their apps with either source code on GitHub repo or with local artifacts, for a new ACA app or an existing ACA app. This   will   empower  developers  to  run containerized Java application s  in the cloud , and   strengthen security posture and  better attune  memory  configuration for the container environment.  Watch this demo below to build and deploy your first Java on ACA app, [video mp4="https://devblogs.microsoft.com/java/wp-content/uploads/sites/51/2024/05/JavaonACABuild.mp4"][/video] Resources Here is a list of links that are helpful to lear...

New open-source AWS Advanced Python Wrapper driver now available for Amazon Aurora and Amazon RDS - devamazonaws.blogspot.com

The Amazon Web Services (AWS) Advanced Python Wrapper driver is now generally available for use with Amazon RDS and Amazon Aurora PostgreSQL and MySQL-compatible edition database clusters. This database driver provides support for faster switchover and failover times, and authentication with AWS Secrets Manager or AWS Identity and Access Management (IAM). The AWS Advanced Python Wrapper driver wraps the open-source Psycopg and the MySQL Connector/Python drivers and supports Python versions 3.8 or newer. You can install the aws-advanced-python-wrapper package using the pip command along with either the psycpg or mysql-connector-python open-source packages. The wrapper driver relies on monitoring database cluster status and being aware of the cluster topology to determine the new writer. This approach reduces switchover and failover times from tens of seconds to single digit seconds compared to the open-source drivers. The AWS Advanced Python Wrapper driver is released as an open-...