Giter VIP home page Giter VIP logo

microservices's Introduction

Microservices

Micro-services using spring boot training conducted at RPS consulting on 12th June 2017

  1. SOA vs Microservice, technical aspects on microservices/REST a. such as deployment in separate operating systems and scale per the volume. b. processing of payloads XML vs Plaintext c. REST works with HTTP protocol no specific protocols are required.
  2. Architectureal Important points - a. Service Failover (Load balancing, circuit breaking pattern) b. Maintainance c. Security d. Choreography vs Orchestration The choreography describes the interactions between multiple services, where as orchestration represents control from one party's perspective. This means that a choreography differs from an orchestration with respect to where the logic that controls the interactions between the services involved should reside.

Docker commands to deploy the JAR which we generated from spring boot project

1. Docker should have access in the drive where it is running.

2. Navigate to the project directory where we have POM.xml and Keep the Dockerfile, Docker file contains instruction to the Docker container
   without that the command will fail.

3. Issue the command docker build -t IMAGENAME:latest .  (There is DOT at the end)

4. Once Download is completed issue the command docker run IMAGE_NAME or docker run -p 8080:8080 IMAGE_NAME

Spring Boot with Service Discovery using Eureka Server 1. Every service should register itself with Eureka server, check the eureka console and it should display your services as registered service. 2. Zuul is the API gateway and needs to be configured with Eureka to discover the service and route. Direct routing is also possible using URL. 3. While downloading the project from SpringInitilizr, make sure that we add Eureka servver and Zuul Proxy as dependency.

OAUTH AUthentication

Instead of calling to proxy service directly or discovering the service from service registry, request has to go to the OAUTH server. access 
token will be given with expiry and then using the token service should be invoked. 

microservices's People

Contributors

gajendra1987 avatar

Watchers

James Cloos 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.