July 20–24, 2015
Portland, OR

Java-based microservices, containers, Kubernetes - how to

Ray Tsang (Google)
4:10pm–4:50pm Wednesday, 07/22/2015
Architecture Portland 251
Average rating: ****.
(4.68, 28 ratings)
Slides:   external link

Prerequisite Knowledge

Basic knowledge of Docker containers and container linking.


Join this session to learn how to create a Java-based microservice using Spring Boot, containerize it using Maven plugins, and subsequently deploy a fleet of microservices and dependent components such as Redis using Kubernetes.

Spring Boot makes creating microservices fast and easy – when it comes to running a single instance. Like most Java applications, the harder part is usually the clustering and fail-over configurations.

First, we’ll go over how to get started with Spring Boot, and, subsequently, using Maven plugins to generate and create Docker images during the build process.

Next, we’ll go over some basic architecture and configurations, such as:

  • Configuring Spring Session
  • Using Redis as the session store
  • Testing the configuration locally with container linking
  • Tips and tricks for faster startup (/dev/./urandom is your friend)

Finally, with the images, we’ll deploy the microservice into Kubernetes:

  • Defining pods and services
  • Linking microservices to Redis using Kubernetes
  • Perform rolling upgrades of the application
  • Canary new versions of the microservices into the fleet

The best part is – we can visualize all these activities happening in Kubernetes.

Photo of Ray Tsang

Ray Tsang


Ray Tsang is a developer advocate for the Google Cloud platform. Ray had extensive hands-on cross-industry enterprise systems integration delivery and management experience during his time at Accenture, managed full stack application development, DevOps, and ITOps. Ray specialized in middleware, big data, and PaaS products during his time at RedHat, while contributing to open source projects such as Infinispan. Aside from technology, Ray enjoys traveling and adventures.

Comments on this page are now closed.


Picture of Ray Tsang
Ray Tsang
07/27/2015 2:19pm PDT

The slides are now on my speakerdeck :D


Picture of Ray Tsang
Ray Tsang
07/25/2015 12:24pm PDT

Andrew – I’ll post this version soon! In the mean time, you can find a variation of my deck on speakerdeck and find the source on github:



Andrew Cheung
07/25/2015 9:51am PDT

Hi Ray, I wonder if you will post the slides or sample program. Thanks.