Microservices-Product-User-Gateway

Microservices Product User Gateway

This repository demonstrates a microservices-based architecture built with Spring Boot. It includes services for managing Products and Users, with features like service discovery, API gateway integration, and inter-service communication using Feign Client.

🌟 Features


🏗️ Project Structure

  1. ProductService: Handles product-related operations.
  2. UserService: Manages user-related functionalities.
  3. ServiceRegistration: Eureka Server for service discovery.
  4. ZuulService: Gateway service using Zuul for routing and filtering requests.
  5. FeignClient: Enables easy communication between ProductService and UserService.

⚙️ Technology Stack


🚀 Setup and Run Instructions

  1. Clone the repository and navigate to the project directory.

  2. Build the project using Maven.

  3. Start the services in the following order:
    • ServiceRegistration (Eureka)
    • ProductService
    • UserService
    • ZuulService (Gateway)
  4. Use the API Gateway to access the services:
    • http://localhost:8765/product-service/...
    • http://localhost:8765/user-service/...

📜 API Endpoints

ProductService

UserService