Giter VIP home page Giter VIP logo

ooka-microservices's Introduction

Migration einer monolithischen Architektur auf Microservices

by Florian Weber & Thomas Jonas

Application

Architecture

The following 5 diagrams describe:

  • Context View: High level
  • Development View
  • Sequence View
  • Deployment View
  • Context View: Kafka Communication Channels

Context View

Context View

WirSchaffenDas is the system we developed.
It uses an external Kafka Broker, and can be accessed by a user via a web browser.

Development View

Development View

"WirSchaffenDas" consist of two main components:

  • Analysis GUI
  • Algorithm Components

The Analysis GUI is a web application, which can be accessed by a user via a web browser.
It is responsible for displaying the results of the analysis.

The Algorithm Components are responsible for the actual analysis.
They are implemented as microservices, and communicate via Kafka.
Each Algorithm Component is responsible for one specific analysis algorithm.

Sequence View

Programm Flow View

The following sequence diagram shows the program flow of the analysis GUI.
The user can select an analysis algorithm, and start the analysis.
The analysis GUI then sends a request to the selected algorithm component.
The algorithm component then starts consuming messages from the kafka topic.
The algorithm component then starts the analysis, and sends the results back to the analysis GUI.
The analysis GUI then displays the results to the user.

Deployment View

Deployment View

The following deployment diagram shows the deployment of the analysis GUI and the algorithm components.
The analysis GUI is deployed as a web application, and can be accessed by a user via a web browser.
The algorithm components are deployed as microservices, and communicate via Kafka.
Each algorithm component is deployed as a seperate service, and can be scaled individually.

Context View: Kafka Communication Channels

Context View 2

The following diagram shows the communication channels between the algorithm components and kafka.
Each algorithm component consumes messages from a specific kafka topic.
Each algorithm component produces messages to a specific kafka topic.
The analysis GUI produces messages to a specific kafka topic.
The analysis GUI consumes messages from a specific kafka topic.

Projekt Struktur

Beispielhaft:

  • kafka_stream_visualizer: Kafka Visualisierung aus Florians Bachelorarbeit
  • microservice_architecture: Microservice-Migration der WirSchaffenDas Ausgangsarchitektur
  • kafka
  • (docker)

Um den Ueberblick zu behalten

Projekt Setup

  • Requirements zum Ausfuehren. zb Java Version
  • Installationsanleitung. zb. JDK oder Docker

Deployment

  1. Connect to HBRS-VPN to enable access to the kafka-cluster.

  2. Execute services in seperate shells/processes.

  3. Start kafka-consumer in each algorithm component.

  4. Navigate to GUI and start the analysis.

  5. Start services

# In each alg_comp directory run:
./gradlew bootRun

# Deploy analysis GUI (in analyse-dashboard directory)
bash ./mvnw

To start the kafka-consumer in each algorithm component,
their /startConsuming-endpoint has to be called explicitly.

# Check if server is up
curl 'http://localhost:8081/healthCheck'

# Start consuming messages from kafka topic
curl 'http://localhost:8081/startConsumingKafka'

Lessons learned

  • Importance of Communication when planning and executing a project.
  • Complexity of dependency management.
  • Curcuit-breaker integration.
  • Automated deployment.
  • Containerization.

ooka-microservices's People

Contributors

thomasjon196 avatar flwe avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.