Spring Boot micro service as a Docker container inside Kubernetes on Windows – Introduction

Thispage provides a quick reference on the steps needed to run a Spring Bootapplication as a Docker container inside Kubernetes on Windows. This would beready reference for anyone wanting to experiment with micro servicesarchitecture. How to run a SpringBoot application as a Docker container inside Kubernetes on Windows -Introduction This section provides a quick introduction …

Spring Boot micro service as a Docker container inside Kubernetes on Windows – Introduction Read More »

Spring Boot micro service as a Docker container inside Kubernetes on Windows – Developing a simple Micro Service using Spring Boot

This section provides a quick introduction on how to develop a simple micro service which exposes a REST API using Spring Boot. The intent is to do a simple “/sayhello” API which returns “Hello” as the output. Open the Spring Tool Suite (STS) and click on Spring Starter Project. Create a Spring Starter Project Fill …

Spring Boot micro service as a Docker container inside Kubernetes on Windows – Developing a simple Micro Service using Spring Boot Read More »

Spring Boot micro service as a Docker container inside Kubernetes on Windows – Containerize the micro service and deploy

This section provides the steps needed to run the Spring Boot micro service as a Docker container inside Kubernetes. Copy the MyFirstApp-0.0.1-SNAPSHOT.jar built in the previous section to another folder say C:\MyFirstApp. Let us now create a Docker container using this standalone jar. We need to introduce the Docker file. Create a file with name …

Spring Boot micro service as a Docker container inside Kubernetes on Windows – Containerize the micro service and deploy Read More »

Spring Boot micro service as a Docker container inside Kubernetes on Windows – Installing tools

This section lists the pre-requisite tools needed to run Spring Boot, Dockers and Kubernetes. Installation steps needed for each of the tools is summarized. Apache Maven  Maven is the build tool used for this article. Maven is based on the concept of a project object model (POM) Maven can manage build, reporting and documentation from …

Spring Boot micro service as a Docker container inside Kubernetes on Windows – Installing tools Read More »

Scala Traits

Scala Traits defines object types by providing signature of the supported methods. This tutorial provides a quick introduction to Scala Traits. Some key points on Scala Traits. Scala Traits are like interfaces in Java.  Scala Traits can have default implementations for certain methods unlike Java interfaces.  Scala Traits don’t have any constructor parameters. Scala class …

Scala Traits Read More »

Scala Case Classes

Scala supports an interesting construct called case classes with the intent of creating immutable objects that can be used in pattern matching. This article provides a quick introduction to Scala case classes with examples. A case class is created by adding the keyword case before the class definition. case class Employee Scala Case Classes can …

Scala Case Classes Read More »

Scala Classes

Like any object oriented programming language Scala allows to define classes which is the code template for creating objects. This article provides a quick introduction to work with Scala classes. Scala Classes, Fields and Methods Scala Class is the extensible static code template that can be initiated into objects at run time. Class definition in …

Scala Classes Read More »

Scala Currying Functions

Currying converts a function with multiple arguments into a series of a functions with single argument. This article provides an introduction to Scala Currying Functions. Scala Currying Functions is often confused with Scala Partially Applied Functions. Both currying and partial application enables creation of derived functions with smaller number of arguments. Key difference is that in …

Scala Currying Functions Read More »

Scala Partially Applied Functions

To invoke functions requires us to specify all the function parameters. Scala provides a construct called Partially Applied Functions where a function invocation can be reused by retaining some of the parameters without the need to type them again. Partial application enables conversion of a function with multiple arguments into one with fewer arguments with …

Scala Partially Applied Functions Read More »

Scala Anonymous Functions

Scala  supports a facility to avoid naming functions. This provides convenience when working with higher order functions where the need is to pass a function as a parameter to another function. These are referred to as anonymous functions or function literals.  A simple anonymous function. (x : Int) => x * x Here x : Int is the parameter …

Scala Anonymous Functions Read More »