Skip to content

Deep dive in some advanced concepts of microservices architecture based on my previous repo "demo-microservices"

License

Notifications You must be signed in to change notification settings

miliariadnane/advanced-microservices

Repository files navigation

🧺 Sample Store App With Microservice Architecture 🧺

A practical sample store, built with spring frameworks, kubernetes and deployed on AWS. This is an advanced part based on my previous project demo-microservices in which I'm focusing on security concerns, resiliency, observability and deployment improvements.

💡 This application is not business oriented and my focus is mostly on technical part, I just want to implement a sample app from scratch with microservice architecture using different technologies, principles and patterns.

🌀 This Application is in-progress and I will add new features over time. 🌀

Guide & Documentation

🔜 Coming soon ... 🔜

Support

If you like my work, feel free to:

  • ⭐ this repository. And we will be happy together :)

Thanks a bunch for supporting me!

Features

  • ✅ Using Postgres and PgAdmin for database and database management system.
  • ✅ Using docker and docker-compose for running the application on local machine, docker, kubernetes and AWS environment.
  • ✅ Using Event Driven Architecture on top of RabbitMQ Message Broker.
  • ✅ Using Prometheus and Grafana for monitoring and metrics.
  • ✅ Using Sleuth and Zipkin for distributed tracing and logging.
  • ✅ Using Service Discovery with Eureka server for local development and Kubernetes service discovery for production environment.
  • ✅ Using API Gateway with Spring Cloud Gateway for local development and Kubernetes load balancer for production environment.
  • ✅ Using AWS SES service for sending emails.

Roadmap

  • 🚧 Add Api Key Management with Keycloak for security and authentication.
  • 🚧 Using Helm or Kustomize for deploying the application on Kubernetes cluster.
  • 🚧 Add Resilience4j for circuit breaker and fallback.
  • 🚧 Add log aggregation with ELK stack.
  • 🚧 Create frontend application with React / Angular.
  • 🚧 Add Istio for service mesh.

Technologies - Libraries

  • ✔️ eureka-server-discovery - Eureka is a service registry for resilient spring microservices.
  • ✔️ spring-cloud-gateway - Spring Cloud Gateway is a non-blocking, reactive, based on Spring 5, web server gateway.
  • ✔️ spring-cloud-loadbalancer - Spring Cloud LoadBalancer is a library that provides a common abstraction over client-side load balancing.
  • ✔️ sleuth-zipkin - Distributed tracing with Zipkin and Spring Cloud Sleuth.
  • ✔️ open-feign - Declarative REST Client for spring.
  • ✔️ spring-boot-starter-data-jpa - Spring Data JPA is a layer on top of the JPA API.
  • ✔️ lombok - Project Lombok is a java library that automatically plugs into your editor and build tools, spicing up your java.
  • ✔️ amqp-starter - Spring AMQP provides an abstraction layer for sending and receiving messages with a message broker.
  • ✔️ rabbitmq - RabbitMQ is an open source message broker software that implements the Advanced Message Queuing Protocol (AMQP).
  • ✔️ mapstruct - MapStruct is a code generator that greatly simplifies the implementation of mappings between Java bean types based on a convention over configuration approach.
  • ✔️ Junit5 - For unit testing and integration testing.
  • ✔️ Mockito - For mocking objects in unit tests.
  • ✔️ jib-plugin - Container image builder that facilitates building container images for your Java applications.
  • ✔️ docker-compose - Compose is a tool for defining and running multi-container Docker applications.
  • ✔️ kubernetes - Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications.
  • ✔️ prometheus - Prometheus is an open-source systems monitoring and alerting toolkit.
  • ✔️ grafana - Grafana is an open source, feature rich metrics dashboard and graph editor for Graphite, Elasticsearch, OpenTSDB, Prometheus and InfluxDB.
  • ✔️ AWS SES - Amazon Simple Email Service (Amazon SES) is a cloud-based email sending service.
  • ✔️ AWS EKS - Amazon Elastic Kubernetes Service (Amazon EKS) is a managed service that makes it easy for you to run Kubernetes on AWS without needing to install, operate, and maintain your own Kubernetes control plane.

System Architecture

License

This project is made available under the MIT license. See LICENSE for details.

About

Deep dive in some advanced concepts of microservices architecture based on my previous repo "demo-microservices"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages