Build enterprise Java code with Azure Spring Cloud


There is still a lot of Java applications out there that power our businesses. But what happens when we move those Java applications to the public cloud? Can we deploy them without rewriting them and still have all the cost and scaling advantages of services like Azure?

One option is Azure’s new Spring Cloud service. Built around the popular Spring Boot Java framework from Pivotal, it helps you take advantage of key Azure services in your Java code and use Azure’s Kubernetes Service to manage scaling. There’s very little configuration needed, and even less platform management, as it’s available as a managed service. Currently in private preview, a public preview is due before the end of 2019.

A derivative of the familiar Spring, Spring Boot is perhaps best thought of as an effective run time for enterprise Java applications. All you need to do is write and deploy your code. Spring Boot configures and manages libraries and services for you. The intent is that your code, as the Spring Boot documentation says, “just runs.”

Opinionated Java on Azure

It’s Spring Boot’s opinionated approach to handling dependencies that makes it suitable for running as a managed cloud service. If you don’t need to manage the libraries your code needs, it’s a lot easier to keep services up to date, and to ensure that you can build your application code and any associated artifacts into a continuous delivery pipeline. Any changes simply generate and deploy a new JAR (Java Archive). Pivotal’s Spring Boot tooling includes its own Build Service, which takes your code, compiles it, packages it, and, in Azure Spring Cloud, delivers it in a container ready to run on Azure Kubernetes Service (AKS). Once code has been deployed to Azure, you can use the Azure CLI to run and scale your applications.

Pivotal has been working with Heroku to develop tools to improve creating containers for Kubernetes applications, as part of its Build Service. If you’re using Azure Spring Boot, you’ll use these tools to manage your application images. One tool, Cloud Native Buildpacks, is used to construct and package your application images, allowing them to run anywhere Spring Boot runs. The other, kpack, works with Kubernetes controllers to automate deployments using the Kubernetes command line and a set of custom Kubernetes controllers.

READ ALSO  Pixel 4 hands-on videos reveal all, including new 'Screen attention' mode

With kpack in Spring Boot, if you push an update to your source control tree, kpack can detect the push and automatically build and deploy an updated Buildpack to your application. It’s not only for Spring Boot, it’s also suitable for use with Cloud Foundry applications and since it’s open source, it’s being picked up by other Kubernetes-based projects. In Azure Spring Boot it automates working with your code and creating and updating containers, ready for deployment.



Source link

?
WP Twitter Auto Publish Powered By : XYZScripts.com