Giter VIP home page Giter VIP logo

microservices-and-distributed-systems's Introduction

This is a demo application project which shows you how microservices architecture can build and what is it in common way.

Open up a picture to consider with a schema

In this application I am using the stack
java 17
spring-boot
hibernate
spring 
cloud stack (apigw, eureka-server, zipkin, open feign etc)
k8s
RabbitMQ.  

There are a lot of ways how you can launch an application. I described the most useful way.

  1. First of all create your account in docker hub.
  2. Change the row in main pom.xml <image>YOURACCOUNT/${project.artifactId}:${project.version}</image> this allows you to build and push docker images in your docker account.
  3. build and publush images
mvn clean package -P build-docker-image

After building and pushing images go to the next steps for launching all infrastructure in k8s.

For launching the application, please install minikube and follow the next instructions : 4.

   minikube start --driver=hyperkit    -  launch your env in hyperkit 
   -  Run all deployment and statefulset 
   kubectl apply -f k8s.minikube.bootstrap/postgres
   kubectl apply -f k8s.minikube.bootstrap/customer
   kubectl apply -f k8s.minikube.bootstrap/fraud
   kubectl apply -f k8s.minikube.bootstrap/notification
   kubectl apply -f k8s.minikube.bootstrap/rabbitmq   
   kubectl get pods -w    -  Ensure that all pods have been launching
   minikube service --url customer - run     -  because the most pods in private network you should open the tunnel.
    Send the post request http://YOURTUNNEL/api/v1/customers  

microservices-and-distributed-systems's People

Contributors

ispylnev 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.