Skip to content

M1a: layout — services/, gateway/, one service table, new ports - #1

Merged
MAOFILHO merged 1 commit into
mainfrom
m1a/layout
Nov 15, 2026
Merged

MAOFILHO merged 1 commit into
mainfrom
m1a/layout

Conversation

@MAOFILHO

Copy link
Copy Markdown
Owner

Summary

Structural change only. No pattern features yet; M1 builds on this layout.

  • services/{user,catalog,order}/ replace microservices/*-service/; gateway/ replaces bff/.
  • Monolith-era code removed: migration engine, Azure traffic shifting, benchmark, Learn/Migrate/Metrics pages.
  • scripts/service_table.py is the one list of processes and ports (user 5101, catalog 5102, order 5103, gateway 8100, frontend 5273). Ports are offset so this project and the parent can run at the same time.
  • Gateway is a thin proxy: /api/shop/<path> goes to the owning service; unknown path returns 404, unreachable service returns 503.
  • Bicep and provision.py deploy user, catalog, order and gateway Container Apps; images are built with --platform linux/amd64.

Test plan

  • make test: 25 passed across 5 suites
  • make smoke with make run up: 9 passed, 3 skipped (Azure-only); full checkout passes direct and through the gateway
  • npm run build and az bicep build pass
  • Shop page loads products through the gateway on :5273
  • CI green on this PR

🤖 Generated with Claude Code

- Move microservices/{user,product,order}-service to services/{user,catalog,order}
  and bff/ to gateway/.
- Remove the monolith-era migration engine, Azure traffic shifting, benchmark,
  Learn/Migrate/Metrics pages and their tests.
- Add scripts/service_table.py as the single list of local processes and ports
  (user 5101, catalog 5102, order 5103, gateway 8100, frontend 5273), used by
  setup, run_local, provision and the smoke tests.
- Gateway: thin proxy /api/shop/<path> -> owning service, 404 for unknown
  paths, 503 when a service is unreachable.
- Frontend: single-backend Shop, Patterns roadmap page.
- Infra: one Container App per service plus the gateway, one DB per service,
  az acr build --platform linux/amd64.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MAOFILHO
MAOFILHO merged commit 003c618 into main Nov 15, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant