Building a Spring Cloud Native Microservice Application on Azure, Part 1

Zach Gardner Articles, Azure, Cloud, Development Technologies & Tools, Java, Microservices Leave a Comment

The big three cloud providers (AWS, Azure, and Google Cloud, in that order) have their various strengths and areas of expertise. Most large organizations though typically pick one cloud provider for their cloud computing needs. This works well if youโ€™re a Java shop thatโ€™s on AWS, or a Microsoft shop on Azure. But what if youโ€™re on a large Java project in an organization that wants to use Azure? Youโ€™re in luck.

Microsoft Azure has come a long way, and is very supportive of non-Microsoft technologies. The proof though is in the pudding. Which is where this blog post comes in. I take Josh Longโ€™s Bootiful Microservice Services, a great starting point to get a cloud native Spring microservice application up and running, and show how it can be run on Azure.

This first blog post will be all about setting up our basic microservices by walking through the various parts of Joshโ€™s example application, with some best practices and patterns that Iโ€™ve found to be effective. Rather than a simplistic ToDo application, weโ€™ll be basing our application off of my favorite bagel shop in New York, Original Bagel Boss in Hicksville, to manage its orders, inventory, etc. If we can run a bagel shop on a Spring application running on Azure, and keep customers happy and full of carbohydrates, then it proves out for applications of a similar size and complexity.

Weโ€™ll be staying mostly inside the familiar Java confines, then slowly start working our way out to getting our application deployed to Azure. Then weโ€™ll start introducing additional complexity like Spring Batch jobs, a React front end, etc. A setup this complex will show that Azure is ready for prime time when it comes to running applications in production, even if they are built on non-Microsoft technologies…

Part 6: Node + Express for a โ€‹Sโ€‹imple โ€‹Sโ€‹ecurity โ€‹Mโ€‹odel

Chris Berry Articles, JavaScript, Node.js, Single-Page Application, solidfoundationsseries, Tutorial, Vue.js 1 Comment

Part of the Solid Foundations Learning Series

This is an in-depth learning series focused on a specific application: a JavaScript-based suite of single-page applications optimized for use in a microservice environment. We focus on telling the story of โ€œwhyโ€ and โ€œhowโ€ it was built.

Throughout this series, we have touched on adding navigation, content and single-page applications, but we havenโ€™t touched on the security of the application yet.

In this article, weโ€™re going to add a simple security model to the application which will accept a login, validate a user, redirect to a secure page, enable a logout, and catch any errors which occur during the process. Letโ€™s get started.

Part 2: Navigationโ€‹ Setup with Node + Express โ€‹

Chris Berry Articles, JavaScript, Microservices, Node.js, Single-Page Application, solidfoundationsseries, Tutorial, Vue.js Leave a Comment

This is an in-depth learning series focused on a specific application: a JavaScript-based suite of single-page applications optimized for use in a microservice environment. We focus on telling the story of โ€œwhyโ€ and โ€œhowโ€ it was built.

In part one, we reviewed how the base application was created by using the Express Generator command line tool. We also reviewed the folder layout, look and feel, and an overview of what each section of the application does. In this post, weโ€™re going to dive in a little deeper to the application and explain the why and how of the navigation setup for this application….

Part 1: JavaScript Application Introduction

Chris Berry Articles, Development Technologies & Tools, JavaScript, Node.js, Single-Page Application, solidfoundationsseries, Vue.js 2 Comments

Part of the Solid Foundations Learning Series
This is the introductory post to an in-depth series of articles that will tell the story of why and how a specific web application was built. In a nutshell, it is a JavaScript-based suite of single-page applications optimized for use in a microservice environment.

In this post, we will set the stage for the series and introduce the overall design and structure of this application. In future posts of this series, there will be technical discussions about certain parts of the application and there will be theory discussions for other aspects of the application.

The web application we will be talking about started its life as a simple NodeJS and Express application….

Lean Mean Vue Machine

Chris Berry Articles, Development Technologies & Tools, JavaScript, Vue.js Leave a Comment

The year is 2019 and Command Line Interfaces abound for many of the big name JavaScript frameworks such as Angular CLI, Create React App, and the Vue CLI.

But wouldnโ€™t it be nice to go back to the days when you could just drop a simple script tag on a page and be able to run an application? Well, here is my attempt in trying to accomplish just that.

In this post, we create a working Vue.js web application with standard CRUD functionality and deploy it without any extra dependencies other than the actual application itself.