Integrate Azure and Spring with Spring Cloud Azure |
Written by Nikos Vaggalis | |||
Monday, 09 May 2022 | |||
Spring Cloud Azure is an open-source project that provides seamless Spring integration with Azure services. It has now reached version 4.0. Not to be confused with Azure Spring Cloud. which is a fully managed Spring Cloud service on Azure,Spring Cloud Azure is just an SDK that offers a convenient way to interact with Azure-provided services using well-known Spring idioms and APIs for Spring developers. Spring Cloud Azure is a slightly vague term, but in essence it collectively brings together under one umbrella the following components: Spring Cloud
Spring Boot
Spring Data
Spring Integration
Version 4 is a significant milestone that brings better security and support for production readiness amongst others. With version 4 released, support for the older versions of 3.x.x which have all reached end of life, is dropped. The changes to v4 since 3.10 are: Unified Development Experience by unifying project name, artifact ID and properties under com.azure.spring. Simplified dependency management by codifying the best practices and expertise from Spring experts and condensing all of dependency BOMs into one, spring-cloud-azure-dependencies.Adding the Spring Cloud Azure BOM to your application is as simple as: <dependencyManagement> More flexible Spring programming model by rearchitecting the Spring module dependencies from the ground up to make them a better fit with different approaches,for instance using Spring Cloud Azure client libraries to interact with Azure Event Hubs. More control and security by enabling the so called credential chain, a way of allowing applications to obtain credentials from application properties, environment variables, managed identity, IDEs, etc., all of which promote securing your apps in a zero-trust programing model. More options exposed in a Spring idiomatic way by improving autoconfiguration coverage of Azure SDK clients for both synchronous and asynchronous scenarios, for example:
Expanding support scope to further services Event Hubs, Azure Cache for Redis and App Configuration Other than the release itself,the accompanying documentation and code samples were updated too.Spring Cloud Azure Samples and Animal Rescue are two such repos. Finally,Spring Cloud Azure version 4 requires Spring Boot 2.6x and Spring Cloud version 2021.0.x, so make sure you upgrade those too.
More InformationSpring Cloud Azure 4.0 reference documentation Related ArticlesNgrok Spring Boot Starter - Tunneling The Easy Way
To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.
Comments
or email your comment to: comments@i-programmer.info |
|||
Last Updated ( Monday, 09 May 2022 ) |