Code Monkey home page Code Monkey logo

library's Introduction

About

The idea behind this project is to implement some concepts related to the micro-services architecture. The main patterns we are going to use in this project are:

  • Event Driven Programming: Programming where the primary activity is reaction to receipt of semantically significant signals (aka 'events'). See more details here.
  • Microservice Architecture: Microservices is an architectural style that structures an application as a collection of loosely coupled services, which implement business capabilities. See more details here
  • CQRS (Command Query Responsibility Segregation)
  • API Gateway Pattern
  • Service Registry Pattern
  • Load Balancing

Basic Application

The application is a basic library (for books) in which the user is able to create(does not make sens in real life) and search for books. A book is defined by a title, a year of publication and an author's name. The objective of the project is an introduction to the micro-services architecture. The chosen technologies are Spring Boot, Spring Data, RabbitMQ, Netflix OSS(Eureka, Zuul and Ribbon), MongoDB, Elastic Search and Angular for the front-end.

Architecture

As explained before, the architecture of this project is oriented micro-services in which each component is implemented in a separated project (service). This chose was made in order to show the concepts previously introduced:

  • CQRS: I have separated the command (write/delete/update) component from the query(read) one. The same object (book) is used in both of the services, so it does not make sens to separate but again the objective here is to learn the pattern.
  • Event Driven Programming: when the user (using wbe interface or a client wbe service) creates a new book (using command service) an event (a message) is created (of type new book) and sent to the broker, the message will be intercepted by the indexing service in order to index the new book.

Reference-style: alt text

library's People

Contributors

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