Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
E

ecommerce-microservices

> 前端框架
Open source

⚡️ Microservice Architecture with system for e-commerce project! Spring Boot microservices app with Spring Cloud, Robust and resilient backend managing e-Co

364 stars0 likes1 views
WebsiteGitHub

About

⚡️ Microservice Architecture with system for e-commerce project! Spring Boot microservices app with Spring Cloud, Robust and resilient backend managing e-Co


Overview

ecommerce-microservices is a production-grade, cloud-native e-commerce platform built with a microservice architecture. It consists of 13 Spring Boot 3 backend services, an Apache APISIX API Gateway, a Next.js 16 frontend, and a full suite of infrastructure — all deployable on Kubernetes (k3d) with a single command.

⚡ Backend 13 microservices · Java 21 · Spring Boot 3.3.5
Gateway Apache APISIX 3.9 · Rate limiting · JWT validation
️ Databases PostgreSQL 16 · Redis 7 · Elasticsearch 8
Messaging Apache Kafka 3.9 (KRaft mode, no Zookeeper)
Auth Keycloak 26 · OAuth2 / OIDC · JWT
☁️ Storage RustFS (S3-compatible)
Deploy Docker Compose · k3d / Kubernetes · ArgoCD

️ Technology Stack

Backend

Runtime Java 21 (Virtual Threads)
Framework Spring Boot 3.3.5, Spring Security 6, Spring Data JPA
Database PostgreSQL 16, Liquibase migrations
Search Elasticsearch 8, Spring Data Elasticsearch
Messaging Apache Kafka 3.9 (KRaft), Spring Kafka
Security Keycloak 26, OAuth2 / OIDC, JWT, Spring Security Resource Server
Gateway Apache APISIX 3.9 (OpenID Connect, rate limiting, CORS)
Storage RustFS (S3-compatible), AWS SDK v2
Observability Micrometer, Prometheus, Spring Boot Actuator
API Docs Springdoc OpenAPI 3, Swagger UI w/ PKCE
Resilience Resilience4j (circuit breaker, retry)
Build Maven, Jib (Dockerless containerization)

Frontend

Framework Next.js 16.2, React 19.2
State Zustand 5, TanStack Query 5
Styling Tailwind CSS 4, Lucide icons
HTTP Axios

Infrastructure

Local K8s k3d (K3s in Docker), NGINX Ingress Controller
Production Kubernetes, ArgoCD (GitOps)
Registry GitHub Container Registry (ghcr.io)
CI GitHub Actions, SonarCloud

Quick Start

Prerequisites

  • Docker Desktop (macOS / Windows) or Docker Engine (Linux)
  • 8 GB+ RAM allocated to Docker

One-Command Setup (k3d)

bash
git clone https://github.com/hoangtien2k3/ecommerce-microservices.git
cd ecommerce-microservices
bash start-ecommerce.sh

The script automatically:

  1. Installs k3d and kubectl (if missing)
  2. Creates a local Kubernetes cluster
  3. Deploys NGINX Ingress Controller
  4. Applies secrets, config maps, and infrastructure (PostgreSQL, Redis, Kafka, Elasticsearch, RustFS, Keycloak)
  5. Deploys APISIX gateway + all 13 backend services + frontend
  6. Updates /etc/hosts

Wait ~5 minutes for all pods to become ready:

bash
kubectl get pods -n ecommerce -w

URLs

Service URL
Frontend http://ecommerce.local
API Gateway http://api.ecommerce.local
Keycloak Admin http://keycloak.ecommerce.local
RustFS Console http://rustfs.ecommerce.local/rustfs/console

Project Structure

…

Observability

Every service exposes:

  • Health: /actuator/health (liveness + readiness on port 9000)
  • Metrics: /actuator/prometheus (Micrometer + Prometheus)
  • Distributed Tracing: Correlation ID (X-Correlation-Id) propagated across all services
  • APISIX Metrics: Prometheus metrics on port 9091

Stats

Contributing

If you would like to contribute to the development of this project, please follow our contribution guidelines.


License

MIT License
Copyright (c) 2026 Hoàng Anh Tiến

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Javaconfig-serverdiscovery-serverdockerjava

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架