Code Monkey home page Code Monkey logo

reactive-spring-reactive-microservices's Introduction

spring-reactive-microservices

This demo is based on:

  • Spring boot
  • Spring Webflux
  • Apache Kafka
  • Akka persistence for event sourcing support

There are services:

  • Api-gateway
  • Statistic MS
  • Shortener MS
  • User MS

Shortener MS

  • responsible by creating of short url
  • when user is loading some url based on some key representing shortened url, MS is generaring event ShortenerViewed and publishing it into the Kafka topic "shortener-viewed"
  • this MS is designed or trying to be designed in DDD style and is representing Shortener Bounded Context.
  • Changes of Shortener aggregate like it was created, updated ... are captured by ShortenerChangedEvent and published into the Kafka topic "shortener-changed"
  • Result of changes done on aggregate is also published as a document event into the Kafka topic "shortener-document". This document event representing current state of Shortener aggregate and it could be used for others services for building of local views in order to avoid direct communication between service. This document event is also possible to use for creating of views e.g. comused by ElaticSearch. Maybe it would be implemented later like CQRS.

Statistic MS

  • this MS is downstream of Shortener MS
  • responsible by calculation of some static related with Shortener MS
  • consumer of "shortener-viewed" Kafka topic
  • providing of API for VIEWS like how many times was displayed particular URL

User MS

  • TBD not ready

reactive-spring-reactive-microservices's People

Contributors

michalzeman avatar

Watchers

 avatar

Forkers

ramch22

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.