AssetMonitoringSystem is a production-oriented Laravel 12 microservices system for enterprise IT asset management. It uses a six-service architecture, RabbitMQ topic messaging, PostgreSQL per service, Docker multi-stage builds, an Nginx API gateway, and Terraform for AWS provisioning.
- 🏗️ Architecture
- 🧩 System Design
- 🧠 Key Architecture Principles
- 📦 Microservices Overview
- 🔗 Service Dependencies Map
- 🎯 Prerequisites
- 🗂️ Repository Layout
- 🐳 Local Run With Docker
- 🔐 Seeded Credentials
- 🧪 Sample API Calls
- 📨 Message Flow
- ⚡ Circuit Breaker
- ✅ Testing
- 📘 Swagger / OpenAPI
- 🔭 Telescope
- ☁️ Terraform
- 🛠️ Operational Notes
- ☸️ Kubernetes
- API gateway: Nginx
- Services: 6 Laravel microservices
- Async messaging: RabbitMQ topic exchange
- Database strategy: one PostgreSQL database per service
- Dev observability: Telescope, Swagger UI, Mailpit
- Infra-as-code: Terraform for AWS-oriented provisioning
┌─────────────────────────────────────────────────────────────────────────────┐
│ Nginx API Gateway :8080 │
└──────────────┬────────────────┬────────────────┬───────────────┬────────────┘
│ │ │ │
┌──────▼──────┐ ┌──────▼──────┐ ┌──────▼──────┐ ┌────▼────────┐
│ Identity │ │ Inventory │ │ Assignment │ │ Health │
│ Service │ │ Service │ │ Service │ │ Monitor │
│ :8000 │ │ :8000 │ │ :8000 │ │ :8000 │
└──────┬──────┘ └──────┬──────┘ └──────┬──────┘ └────┬────────┘
│ │ │ │
┌──────▼──────┐ ┌──────▼──────┐ ┌──────▼──────┐ ┌────▼────────┐
│ Identity DB │ │Inventory DB │ │Assignment DB│ │ Health DB │
│ PostgreSQL │ │ PostgreSQL │ │ PostgreSQL │ │ PostgreSQL │
└─────────────┘ └─────────────┘ └─────────────┘ └──────────────┘
┌───────────────────────────┐
│ RabbitMQ Topic Exchange │
│ asset_monitoring_system │
└───────────┬───────────────┘
│
┌──────────────────────────┼──────────────────────────┐
│ │ │
┌───────▼────────┐ ┌────────▼───────┐ ┌────────▼────────┐
│ Audit Service │ │ Notification │ │ Assignment User │
│ + Consumer │ │ Service │ │ Sync Worker │
│ + Audit DB │ │ + Consumer │ │ │
└───────┬────────┘ │ + Notify DB │ └─────────────────┘
│ └────────┬───────┘
│ │
┌───────▼────────┐ ┌───────▼────────┐
│ Telescope │ │ Mailpit :8025 │
│ per service │ │ Email testing │
└────────────────┘ └────────────────┘
┌──────────────────────────────────────┐
│ Swagger UI :8081 / Kubernetes :9081 │
└──────────────────────────────────────┘
The system is designed as a modular microservices platform where each bounded context owns its own data, HTTP API, and async event responsibilities. Synchronous flows go through the gateway and internal REST calls, while cross-service propagation happens through RabbitMQ events so downstream consumers can stay decoupled.
This gives the project a clean separation between identity, inventory, assignment, health telemetry, auditing, and notifications. It also makes it easier to test failure handling, event-driven processing, and independent service scaling.
- Database per service to avoid tight coupling at the persistence layer
- API gateway as the single local entry point
- Event-driven integration for cross-service side effects
- Idempotent consumers for safer message retries
- Public resource lookup by UUID instead of leaking internal numeric IDs
- Local-first developer tooling with Docker Compose, Swagger, Telescope, and Kubernetes support
identity-serviceHandles authentication, Passport token issuance, employees, users, anduser.*events.inventory-serviceOwns IT asset records, asset availability checks, and asset lookup endpoints.assignment-serviceHandles checkout/checkin, local user projection, and inventory circuit breaker logic.health-monitor-serviceStores device heartbeats and detects inactive devices.audit-serviceConsumes platform events and stores immutable audit logs.notification-serviceConsumes relevant events and sends email or Slack-style notifications.
Client
|
v
Nginx Gateway
|
+--> identity-service ------> identity-db
|
+--> inventory-service -----> inventory-db
|
+--> assignment-service ----> assignment-db
| |
| +--> inventory-service (sync validation)
|
+--> health-monitor-service -> health-monitor-db
|
+--> audit-service ---------> audit-db
|
+--> notification-service --> notification-db
RabbitMQ topic exchange
|
+--> assignment-user-sync-worker
+--> audit-consumer-worker
+--> notification-consumer-worker
+--> health-monitor-scanner
Identity Service ──► RabbitMQ ──► Assignment User Sync Worker
│
└──────────────► Assignment Service
Inventory Service ◄────────────── Assignment Service
Assignment Service ──► RabbitMQ ──┬──► Audit Consumer Worker ──► Audit Service
└──► Notification Consumer ──► Notification Service
Health Monitor Service ──► RabbitMQ ──┬──► Audit Consumer Worker
└──► Notification Consumer
Swagger UI ──► Nginx Gateway ──► All HTTP API Services
Mailpit ◄──────────────────── Notification Service
Before you begin, make sure you understand both:
- the software you must have installed on your machine
- the main platform components this project uses internally
That way the setup section is not just “what to install”, but also “what this project is built with”.
| Technology | Version | Role In This Project | Notes |
|---|---|---|---|
| PHP | 8.3 | Runtime for all Laravel microservices | Runs inside the service containers |
| Laravel | 11 | Main application framework | Used by all six backend services |
| Laravel Passport | Current project dependency | OAuth / API token issuance | Used by identity-service |
| Laravel Telescope | Current project dependency | Local observability and request inspection | Enabled in local development |
| PostgreSQL | 16 | Primary database engine | One database per service |
| RabbitMQ | 3.13 | Message broker | Used for async event-driven communication |
| Nginx | 1.27 | API gateway / reverse proxy | Routes requests to the correct service |
| Swagger UI / OpenAPI | Swagger UI v5 + OpenAPI YAML | API documentation and manual endpoint testing | Available through the local docs UI |
| Mailpit | v1.21 | Local email testing inbox | Captures notification emails in development |
| Terraform | 1.x | Infrastructure as code | Used for the AWS-oriented environment under terraform/ |
| Kubernetes | Local cluster compatible | Container orchestration option | Supported through manifests in kubernetes/base |
| Software | Recommended Version | Purpose | Download / Notes |
|---|---|---|---|
| Docker Desktop | Latest stable with Compose v2 | Runs the full local stack, including API services, PostgreSQL, RabbitMQ, Mailpit, and Swagger UI | https://www.docker.com/products/docker-desktop |
| Docker Compose | v2.x | Builds and orchestrates the local multi-container environment | Included with Docker Desktop |
| Git | Latest stable | Clones the repository and helps manage changes locally | https://git-scm.com/downloads |
| PowerShell | 7.x or Windows PowerShell 5.1+ | Runs the project helper scripts and PowerShell API commands used in the README | Included on Windows, or install PowerShell 7 from Microsoft |
| Software | Recommended Version | Purpose | Download / Notes |
|---|---|---|---|
| kubectl | v1.30+ | Applies and manages the Kubernetes manifests in kubernetes/base |
https://kubernetes.io/docs/tasks/tools/ |
| Docker Desktop Kubernetes | Enabled in Docker Desktop | Runs the project on a local Kubernetes cluster without installing Minikube or Kind | Docker Desktop -> Settings -> Kubernetes |
| Terraform | v1.6+ | Applies the AWS-focused infrastructure in terraform/environments/dev |
https://developer.hashicorp.com/terraform/downloads |
| Requirement | Why It Is Needed |
|---|---|
| Internet access during the first build | Each image scaffolds Laravel and installs Composer dependencies during the initial Docker build |
| Available local ports | Docker uses 8080, 8081, 15672, 8025, 1025, and 54321-54326; Kubernetes port-forward examples use 9080 and 9081 |
| Sufficient disk space and RAM | The stack includes multiple Laravel services, six PostgreSQL containers, RabbitMQ, Mailpit, Swagger UI, and optional Kubernetes workloads |
You do not need to install Node.js, npm, RabbitMQ, PostgreSQL, PHP, or Laravel manually on your host machine for the normal Docker-based workflow.
Those technologies are still part of the project stack, but they run inside containers managed by Docker Desktop.
You only need host-level installation of those tools if you intentionally want to develop or debug outside the container workflow.
identity-service: Laravel Passport auth, RBAC, user and employee CRUD,user.*events.inventory-service: IT asset CRUD, asset availability validation, indexed asset lookups.assignment-service: device check-out and check-in, user sync projection, inventory circuit breaker.health-monitor-service: telemetry heartbeat ingestion and inactive device detection.audit-service: centralized event audit trail consumer.notification-service: email and Slack notifications for assignment and health events.
.
|-- docker/
|-- docs/
|-- gateway/
|-- terraform/
| |-- environments/dev/
| `-- modules/
`-- services/
|-- identity-service/
| |-- manifest.env
| `-- overlay/
| |-- app/
| |-- config/
| |-- database/
| |-- routes/
| `-- tests/
|-- inventory-service/
|-- assignment-service/
|-- health-monitor-service/
|-- audit-service/
`-- notification-service/
Each service folder contains:
manifest.env: build-time package requirements.overlay/: Laravel application files copied into a fresh Laravel 12 project during Docker build.overlay/app: Controllers, Services, Repositories, Models, infrastructure code.overlay/database: migrations and seeders.overlay/routes: service routes.overlay/tests: PHPUnit examples for critical flows.
- Docker Desktop or Docker Engine with Compose v2
- Internet access during the first build, because each image scaffolds Laravel 12 and installs Composer packages inside the container build
docker compose buildFor day-to-day development, docker-compose.override.yml mounts each service overlay/ into the container. The entrypoint continuously syncs that overlay into the app tree, so changes under services/*/overlay/app, config, database, routes, tests, and resources are live without rebuilding or restarting.
Rebuild the images only when you change:
docker/service.Dockerfiledocker/scaffold-service.sh- Composer dependencies or PHP extensions
- anything that changes the scaffolded base application rather than the mounted overlay files
If you rebuilt after changing migrations or Docker scaffolding, reset local volumes first so old tables do not remain:
docker compose down -v
docker compose build --no-cacheThis starts the gateway, RabbitMQ, Mailpit, all PostgreSQL instances, all HTTP API containers, and all background workers.
docker compose up -dOn startup each service automatically:
- syncs its mounted overlay
- runs migrations
- for
identity-service: seeds the admin user, generates Passport keys if missing, and ensures a personal access client exists
No separate migrate / seed / passport:install / worker-profile commands are required for local Docker.
Endpoints:
- Gateway health:
http://localhost:8080/healthz - Swagger UI:
http://localhost:8081 - RabbitMQ UI:
http://localhost:15672 - Mailpit UI:
http://localhost:8025
Telescope dashboards:
- Identity:
http://localhost:8080/identity/telescope - Inventory:
http://localhost:8080/inventory/telescope - Assignment:
http://localhost:8080/assignments/telescope - Health Monitor:
http://localhost:8080/health/telescope - Audit:
http://localhost:8080/audit/telescope - Notification:
http://localhost:8080/notifications/telescope
Default RabbitMQ credentials:
- username:
asset_monitoring_system - password:
asset_monitoring_system - Local Docker leaves
SLACK_WEBHOOK_URLempty by default, so notification smoke tests use Mailpit email without trying to call an external Slack webhook.
Workers started with the stack:
assignment-user-sync-workeraudit-consumer-workernotification-consumer-workerhealth-monitor-scanner
docker compose downTo also remove databases:
docker compose down -vdocker compose up -d
docker compose psIf you only changed PHP code, routes, config, tests, or Blade/resources under services/*/overlay, save the file and use the API or tests immediately. No rebuild and no container restart.
docker compose exec identity-service php artisan testdocker compose automatically loads docker-compose.override.yml locally.
If you want to run the base file only, for example in CI or deployment-style usage, call:
docker compose -f docker-compose.yml up -dIf you changed Docker/scaffolding/dependencies:
docker compose build --no-cache
docker compose up -d --force-recreateAfter running identity-service migrations and seeder:
- email:
[email protected] - password:
AdminPass123!
curl --request POST http://localhost:8080/api/v1/identity/auth/login \
--header "Content-Type: application/json" \
--data '{"email":"[email protected]","password":"AdminPass123!"}'You can also exercise the APIs in Swagger UI at http://localhost:8081.
- Use the Identity
POST /api/v1/identity/auth/loginoperation first. - Copy the
access_tokenvalue. - Click
Authorizein Swagger UI and paste only the rawaccess_token. - Swagger UI will automatically send it as
Authorization: Bearer <access_token>.
curl --request POST http://localhost:8080/api/v1/inventory/assets \
--header "Content-Type: application/json" \
--data '{
"serial_number":"LAP-1001",
"asset_tag":"AST-1001",
"specs":{"cpu":"Intel Core i7","ram":"16GB","storage":"512GB SSD"},
"status":"available"
}'curl --request POST http://localhost:8080/api/v1/assignments/checkout \
--header "Content-Type: application/json" \
--data '{
"user_id":1,
"asset_serial_number":"LAP-1001"
}'curl --request POST http://localhost:8080/api/v1/health/heartbeats \
--header "Content-Type: application/json" \
--data '{
"device_serial_number":"LAP-1001",
"metadata":{"ip_address":"10.0.10.24","battery":94}
}'identity-servicecreates or updates a user.identity-servicepublishesuser.createdoruser.updated.assignment-user-sync-workerconsumesuser.*.- The consumer stores the latest user projection locally.
- Assignment check-out uses the local projection and validates the asset through
inventory-service.
assignment-servicepublishesassignment.checked_outorassignment.checked_in.audit-consumer-workerstores an immutable audit record.notification-consumer-workersends email and Slack notifications.
health-monitor-servicestores heartbeats.health-monitor-scannerdetects inactive devices.- The scanner publishes
health.device_inactive. - Audit and notification workers consume the event.
The Assignment Service protects synchronous calls to the Inventory Service with a circuit breaker:
- States:
CLOSED,OPEN,HALF_OPEN - Failure threshold: controlled by
CIRCUIT_BREAKER_FAILURE_THRESHOLD - Open interval: controlled by
CIRCUIT_BREAKER_OPEN_SECONDS - HTTP timeout: controlled by
CIRCUIT_BREAKER_TIMEOUT_SECONDS - Fallback behavior: reject assignment using cached or unavailable asset state
Code reference:
services/assignment-service/overlay/app/Support/CircuitBreaker/CircuitBreaker.phpservices/assignment-service/overlay/app/Support/Inventory/InventoryClient.php
The repository includes example PHPUnit coverage for the highest-risk flows:
- circuit breaker transitions and fallback behavior
- user sync integration from identity payload to assignment projection
- idempotent publish/consume flow around RabbitMQ message contracts
- identity employee/user API flow
- inventory asset CRUD and status validation
- health heartbeat ingestion and inactive device processing
- audit log recording and listing
- notification dispatch, email/slack delivery persistence, and listing
Run tests per service after the containers are built:
docker compose exec identity-service php artisan test
docker compose exec inventory-service php artisan test
docker compose exec assignment-service php artisan test
docker compose exec health-monitor-service php artisan test
docker compose exec audit-service php artisan test
docker compose exec notification-service php artisan testOpenAPI specs are stored in [api-docs/index.yaml](d:/kerja/Loker/Portfolio/Asset Monitoring System /api-docs/index.yaml) and the per-service files under [api-docs/specs](d:/kerja/Loker/Portfolio/Asset Monitoring System /api-docs/specs).
To start Swagger UI:
docker compose up -d swagger-uiThen open:
http://localhost:8081
Included specs:
- Identity Service
- Inventory Service
- Assignment Service
- Health Monitor Service
- Audit Service
- Notification Service
Each Laravel service includes Telescope in local development so you can inspect request timing, queries, exceptions, cache activity, jobs, and outbound mail while exercising the APIs.
Setup checklist:
Telescope tables are created automatically by the local container entrypoint migrations. After docker compose up -d, open the dashboards below.
If you changed docker/scaffold-service.sh, docker/service.Dockerfile, or Composer dependencies, rebuild once:
docker compose build --no-cache
docker compose up -d --force-recreateDashboards:
- Identity:
http://localhost:8080/identity/telescope - Inventory:
http://localhost:8080/inventory/telescope - Assignment:
http://localhost:8080/assignments/telescope - Health Monitor:
http://localhost:8080/health/telescope - Audit:
http://localhost:8080/audit/telescope - Notification:
http://localhost:8080/notifications/telescope
Quick smoke traffic so the dashboards are not empty:
curl -X POST http://localhost:8080/api/v1/identity/auth/login \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"email":"[email protected]","password":"AdminPass123!"}'Then call a few API endpoints from Swagger or PowerShell and open the matching Telescope dashboard to inspect:
- request duration
- SQL query count and timings
- exceptions
- cache activity
- mail events in notification-service
Terraform files live in terraform/environments/dev.
- Copy the example variables file:
cd terraform/environments/dev
cp terraform.tfvars.example terraform.tfvars- Edit
terraform.tfvarswith your AWS VPC, subnet, security group, and secrets. - Initialize and review the plan:
terraform init
terraform plan- Apply:
terraform apply- Amazon RDS PostgreSQL instance per service
- Amazon MQ broker for RabbitMQ
- CloudWatch log groups for gateway and services
- CloudWatch alarms for:
- high API latency
- elevated 5xx error rate
- queue lag / backlog
- Local Docker Compose is intended for development and integration testing.
- Container images use multi-stage builds so Composer and build-time tools stay out of the runtime stage.
- Service logs are structured for aggregation into CloudWatch when deployed on AWS.
- Consumers use
processed_messagestables for idempotency. - The monorepo intentionally keeps each service independent at the database and event-consumer level.
Kubernetes manifests live in kubernetes/base and are organized as a single Kustomize base.
For this project, the recommended local cluster is Docker Desktop Kubernetes. It is the best fit for your current setup because Docker Desktop is already installed and the manifests are configured to use the same locally built images.
- namespace:
asset-monitoring-system - PostgreSQL deployment and PVC per service
- RabbitMQ and Mailpit
- all six Laravel API deployments and Services
- all four background worker deployments
- Nginx gateway and Swagger UI
- ingress resources for API and Swagger hosts
- bootstrap jobs for database migrations
- identity bootstrap job for Passport keys and personal access client setup
Use Docker Desktop Kubernetes.
- Open Docker Desktop.
- Go to
Settings->Kubernetes. - Enable Kubernetes and wait until Docker Desktop shows it as running.
- Keep your normal Docker Desktop engine running.
After that, use the helper script:
powershell -ExecutionPolicy Bypass -File .\scripts\k8s-up.ps1That script:
- checks whether Docker Desktop Kubernetes is reachable
- builds the local images if you ask it to
- applies
kubernetes/base - shows jobs, pods, and services in the
asset-monitoring-systemnamespace
The manifests expect the same local image names produced by Docker Compose:
asset_monitoring_system-identity-service:latestasset_monitoring_system-inventory-service:latestasset_monitoring_system-assignment-service:latestasset_monitoring_system-health-monitor-service:latestasset_monitoring_system-audit-service:latestasset_monitoring_system-notification-service:latest- worker images with the same
asset_monitoring_system-*naming
Build them first:
docker compose buildBecause these custom images use imagePullPolicy: IfNotPresent, Docker Desktop Kubernetes can use your local images directly after docker compose build. No separate minikube image load or kind load step is required for the default workflow.
Apply everything with Kustomize:
kubectl apply -k kubernetes/baseWatch the bootstrap jobs:
kubectl get jobs -n asset-monitoring-system
kubectl logs job/identity-bootstrap -n asset-monitoring-systemWatch the workloads:
kubectl get pods -n asset-monitoring-system
kubectl get svc -n asset-monitoring-systemOr use the helper scripts:
powershell -ExecutionPolicy Bypass -File .\scripts\k8s-up.ps1
powershell -ExecutionPolicy Bypass -File .\scripts\k8s-status.ps1If you have an NGINX ingress controller installed, add these hosts locally:
api.asset-monitoring-system.localswagger.asset-monitoring-system.local
Then use:
- API gateway:
http://api.asset-monitoring-system.local - Swagger UI:
http://swagger.asset-monitoring-system.local
If you do not want to use ingress yet, port-forward instead:
kubectl port-forward svc/gateway 8080:80 -n asset-monitoring-system
kubectl port-forward svc/swagger-ui 8081:8080 -n asset-monitoring-systemIf Docker Compose is still running on 8080 and 8081, use separate local ports for Kubernetes so both stacks can run side by side:
kubectl port-forward svc/gateway 9080:80 -n asset-monitoring-system
kubectl port-forward svc/swagger-ui 9081:8080 -n asset-monitoring-systemThen open:
- Kubernetes gateway:
http://localhost:9080 - Kubernetes Swagger UI:
http://localhost:9081
identity-serviceuses a dedicated PVC mounted at/var/www/app/storageso Passport keys survive pod restarts.- The generated gateway config and Swagger specs are copied into
kubernetes/base/filesso Kustomize can build without external file-load restrictions. - Docker Desktop Kubernetes is the supported local path in this repository. If you later switch to Minikube or Kind, you will need a cluster-specific image loading step.
- If you change
gateway/nginx.confor files underapi-docs, refresh the copied Kubernetes inputs too:
copy gateway\nginx.conf kubernetes\base\files\nginx.conf /Y
copy api-docs\index.yaml kubernetes\base\files\swagger-specs\index.yaml /Y
copy api-docs\specs\*.yaml kubernetes\base\files\swagger-specs\ /Y