Skip to content

SamyakTechLabs/spring-boot-microservice-eks-demo

Repository files navigation

Spring Boot Microservice EKS Demo App

This project showcases a microservice architecture comprising user-service, employee-service, and an api-gateway for interaction between services. This demo app is designed for deployment on AWS EKS and serves as a learning tool for containerized microservice deployment.

Features

  • Microservice architecture with Spring Boot
  • REST APIs with Swagger documentation
  • In-memory H2 databases for development and testing
  • Containerized deployment using Docker and Docker Compose

Architecture Overview

The application consists of:

  • User Service: Handles user-related operations.
  • Employee Service: Manages employee data.
  • API Gateway: Serves as a unified entry point to access the microservices.

Screenshots

1. API Gateway Swagger UI

API Gateway Swagger UI

The API Gateway exposes the combined Swagger UI for easy interaction with the microservices. Access it at http://localhost:8080/swagger-ui/index.html.

2. User Service Swagger UI

User Service Swagger UI

3. Employee Service Swagger UI

Employee Service Swagger UI

H2 Database Console

1. User Database (H2 Console)

User Database

2. Employee Database (H2 Console)

Employee Database

Each service includes an H2 database console:

Use the JDBC URL, username, and password specified in the application.yaml files of the respective services to log in.

How to Run the Application Using Docker Compose

Prerequisites

  • Docker
  • Docker Compose

Build and Run with Docker Compose

  1. Clone the repository to your local machine.
  2. Navigate to the root directory where docker-compose.yml is located and run:
  3. Run the following command to build and start the services:
docker-compose up --build

Accessing the Services

Default Credentials for H2 Console

  • JDBC URL: jdbc:h2:mem:testdb
  • Username: sa
  • Password: password

Contact

For questions or support, please contact support@samyaktechlabs.com.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •