Skip to content

amoraes/spring-cloud-ecs-example

Repository files navigation

Spring Cloud ECS Example

This is an example project to demonstrate the usage of Spring Cloud + ECS to implement a microservices architecture.

Architecture

This project is based on the Spring Cloud base architecture (https://spring.io/cloud).

Alt text

Components

Extras

  • Spring Boot Admin (spring-boot-admin): tools to verify current state individual microservice instances, change logging levels, etc

    http://localhost:9001

Building Docker Images

To build docker images you can run mvn -P docker-build clean package.

Make sure you have a Docker Desktop or alternative running.

MacOS

In case you're using MacOS with Colima, run the following in your terminal and then restart IntelliJ

launchctl setenv DOCKER_HOST unix://${HOME}/.colima/docker.sock

How to run using Docker

  • Make sure you have Docker and Docker Compose installed
  • Just run docker-compose up

Building Java Application only

A simple maven build will do mvn clean package.

How to run using an IDE

  • Just start the services by running the main method in the *Application.java classes in the following order:
    • config-server
    • eureka
    • others

About

Spring Cloud microservices using AWS ECS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published