Skip to content

Sample App multi tier Java/.NET/GoLang app running on Kubernetes utilizing AWS services

Notifications You must be signed in to change notification settings

observeinc/Cars_Sample_App

 
 

Repository files navigation

Cars Sample App Readme

NOTE: If you are looking for the AppDynamics Cars App used for SE recruiting, this is now in its own repo.

This is a web app which provides for a Super car store which has a couple of performance/code issues. The app can be built with Maven and deployed into Kubernetes

Quick Start

All containers are in DockerHub so deploying kuberneters/cars_app.yaml to a K8s cluster will get this up and running. Not the web-server is not exposed by default, this can easily be done with the following

kubectl expose deployment cars-deployment-web --type=NodePort

Architecture

The app is based on an AngularJs front end, calling back to RESTful services, based on Jersey, with a MySQL back end DB, Nginx proxy up front and a Go based Insurance Service

image

There is also a iOS mobile app which uses the same REST endpoints. This app is described in it's own README.

Repo Layout

Most of the code for the app is in this repo, the exception is the Go Insurance Service.

There are a number of directories in this repo for the other components, each has their own README describing the contents

  • web_server - Contains the web server config
  • app_server - All the code and config for the Tomcat layer, this is where the bulk of the code sits
  • db_server - Schema and container definition for MySQL
  • cron_cleanup - A CronJob that runs to clean up after the load test
  • JMeter - Definition for the load testing
  • Demo Monkey - Demo Monkey scripts to skin the demo
  • kubernetes - Config for standing up the whole app in K8s
  • demo_marshaller - Container and app_server YAML files for cycling issues and scaling of app_server
  • prometheus - Container def for collecting metrics
  • mobile/iOS - Mobile app for Cars
  • docimages - Just the images for the READMEs

About

Sample App multi tier Java/.NET/GoLang app running on Kubernetes utilizing AWS services

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 65.9%
  • HTML 13.2%
  • HCL 4.3%
  • CSS 4.2%
  • Python 4.2%
  • Dockerfile 3.8%
  • Other 4.4%