GithubHelp home page GithubHelp logo

gitechshaun / microservice-patterns Goto Github PK

View Code? Open in Web Editor NEW

This project forked from acntech/microservice-patterns

0.0 0.0 0.0 2.62 MB

Projects for exploring different microservice architectures and patterns

License: Apache License 2.0

JavaScript 0.09% Java 93.47% TypeScript 5.49% CSS 0.18% HTML 0.77%

microservice-patterns's Introduction

Microservice Patterns

Projects for exploring different microservice architectures and patterns. Each subfolder focuses on a specific area of patterns.

Build Status

Business case

The same business case is used in all the examples in order to make it easier to compare the different patterns. This business case is that of an ordering system where customers can order products and have them shipped. The architecture of the system is typically comprised of the following microservices:

As well there is an order portal web frontend.

/ frontend / portal / README

The portal uses an API Gateway to proxy all communication with the microservices, and to create a common facade for API calls.

/ frontend / api-gateway / README

Pattern areas

Below are the pattern areas that are being explored. Each subfolder has its own README with further details.

Talking Points

  • Microservices
    • Circuit Breaker
    • Monitoring
  • Event Driven
    • General
      • Delivery guaranty
      • Recover from errors
      • Orchestrated vs Coordinated
    • Event Notifications
      • Decoupling
      • Thin events
      • Fuzzy side effects
      • Process flow is not obvious
      • Events vs Commands
      • Callback storm
      • Backpressure
    • Event-Carried State Transfer
      • More decoupling
      • Local copy of state
      • Higher availability
      • Eventual consistency
    • Event Sourcing
      • Event store is principal source of truth
      • Recreate application state from events
      • Aggregates/Snapshots and history
      • Schema and versioning
      • Application state can be in-memory
      • Service mesh/Memory grid between instances
      • Store all events
      • Ability to look back in time
      • No intermediates
    • CQRS
      • Consider access pattern
      • Increased complexity
  • Security
    • OpenID Connect (OIDC): Authentication layer which is used on top of OAuth2
    • OAuth2: Authorization protocol
      • Roles
        • Resource Owner: End user
        • Client: Application needing access to Resource Server on behalf of Resource Owner
        • Resource Server: API that Client want to access
        • Authorization Server: API that grants access
      • Grant Types
        • Authorization Code: Used with server-side Applications
        • Implicit: used with Mobile Apps or Web Applications (applications that run on the user's device)
        • Resource Owner Password Credentials: used with trusted Applications, such as those owned by the service itself
        • Client Credentials: used with Applications API access

microservice-patterns's People

Contributors

onlyteo avatar jorgenringen avatar orjan-johansen avatar asskali avatar dependabot[bot] 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.