billkoch / cross-the-streams

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cross The Streams - SpringOne 2020

đź‘‹ Getting Started

The following tools will be helpful to hack on the project:

  1. SDKMAN! (JDK version manager)
  2. kind (quickly setup a local Kubernetes cluster)
  3. JMeter (performance testing harness)

Repository Layout

This repository has two branches:

  1. main - this branch is the starting point for the coding demo
  2. graceful-shutdown-support - this branch contains the changes made to the codebase to support graceful shutdowns during the demo

Deploying The Application

  1. Install Java 11

    sdk install java 11.0.2-open
  2. Create a Kubernetes cluster with kind

    kind create cluster --config kind.config.yaml
  3. Build the Docker image:

    ./gradlew jibDockerBuild
  4. Load the Docker image into the kind cluster:

    kind load docker-image cross-the-streams:0.0.1
    
  5. Deploy to the kind cluster:

    kubectl apply -f k8s/
  6. Access the /speakers REST API:

    curl -i http://localhost:8080/speakers
  7. Launch JMeter and open cross-the-streams.jmx

About


Languages

Language:Java 100.0%