Logo: Microservice Architecture

Microservice Architecture

Communautéit
andrew0928
microservice-architecture

Plan Andrew-style microservice architecture and migration by checking whether microservices truly fit, cutting service boundaries around real business responsibilities, evolving systems incrementally instead of rewriting, and engineering platform, runtime, and delivery capabilities as first-class architecture. Use when deciding whether to adopt microservices, decomposing a monolith, planning migration, choosing shared infrastructure, containerizing services, or defining the CI/CD and operability baseline needed to run many services safely.

Iwwersiicht

Editeurandrew0928
Repositoryandrew-skills
Skill-Nummmicroservice-architecture
Stären
36
Forks
6
Matgeliwwert Dateien
7
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 7 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    andrew0928 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Microservice Architecture an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/andrew0928/andrew-skills/tree/main/plugins/architect/skills/microservice-architecture
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/andrew0928/andrew-skills.git /tmp/andrew-skills
mkdir -p .claude/skills
cp -r /tmp/andrew-skills/plugins/architect/skills/microservice-architecture .claude/skills/microservice-architecture
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Microservice Architecture an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Microservice Architecture automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Microservice Architecture net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Andrew Microservice Architecture

Overview

Use this skill when the question is not only how to build one service, but how to shape the whole application and platform so multiple services can evolve, deploy, and operate safely together.

Microservices are not the goal. They are one way to solve maintenance, deployment, scaling, and organizational-fit problems. Start from the pain that justifies service boundaries, move in small steps, and only add infrastructure that the team can actually run.

Working Style

  • Write in Traditional Chinese when the user or repo context is Chinese.
  • Start from the business problem, maintenance pain, and team capability before proposing microservices.
  • Treat microservice architecture as a socio-technical design, not only a code decomposition exercise.
  • Align service boundaries with business flow and organizational responsibility, not only technical layers.
  • Cut only as far as the system gains real independence or operability.
  • Prefer refactoring and staged extraction over rewrite-from-scratch.
  • Use mature external services when they solve the problem better than custom code.
  • Treat API gateway, service discovery, messaging, logging, health, and deployment flow as part of the architecture, not afterthoughts.
  • Prefer container and packaging models that make start, stop, deploy, and rollback predictable.
  • Ask whether a capability needs runtime computation at all. If not, move it to build time or use simpler hosting.
  • Validate risky changes with focused spikes and runnable POCs before institutionalizing them.

Workflow

1. Problem Framing And Fit

  • Define the actual pain the architecture must solve:
    • maintenance cost
    • deployment friction
    • fault isolation
    • scale-out need
    • mixed hosting environments
    • team ownership boundaries
  • State why a monolith or modular system is not already sufficient.
  • Check whether the team has enough baseline capability in:
    • source control
    • build and release
    • monitoring
    • deployment automation
    • production diagnosis
  • Ask whether some parts of the system do not need runtime processes and should remain static or build-time generated instead.

2. Service Boundary And Responsibility

  • Identify candidate boundaries from real business or organizational seams.
  • Define each service by the one responsibility it should own end to end.
  • Prefer boundaries that improve deployability, operability, and ownership together.
  • Avoid over-splitting just because the code can be split.
  • Decide where technical heterogeneity is worth the operational cost.
  • Decide where a mature third-party service is better than a custom-built one.
  • Ensure each service can be understood as a meaningful capability, not only a thin technical wrapper.

3. Migration And Transitional Architecture

  • Do not rewrite everything from scratch unless there is a very strong reason.
  • Stop making the monolith larger before trying to split it.
  • Move upward through reuse levels deliberately:
    • source code
    • library
    • component
    • service
  • Modularize first if direct service extraction is still too expensive.
  • Use transitional glue code when it lowers migration risk, but treat it as disposable.
  • Choose the first cut by impact and feasibility, not by fashion.
  • Keep the system shippable while the migration is in progress.

4. Platform Capability Plan

  • Decide which shared capabilities are required now and which can wait:
    • API gateway
    • service discovery
    • health check
    • communication and event system
    • centralized log or trace
    • configuration management
  • For service discovery, define:
    • registration
    • query
    • health signal
    • metadata or tags
  • Choose control style deliberately:
    • client-side discovery for maximum caller control
    • server-side discovery for centralized routing and lower client intrusion
  • Plan how internal and external traffic will be routed without exposing unnecessary internal topology.
  • Use service metadata when workload tier, region, or SLA class must affect routing.

5. Runtime And Hosting Model

  • Design the runtime topology, not only the code topology.
  • Decide which roles exist around one capability, such as:
    • public API
    • worker
    • scheduler
    • reverse proxy
    • SDK
  • Choose hosting style based on lifecycle control, not habit.
  • In containerized environments, prefer runtime models that let the service control its own startup, shutdown, health, and deregistration precisely.
  • Treat one process per container as the default unless there is a clear reason not to.
  • Let orchestration handle restart, placement, and scaling instead of duplicating those concerns inside each service host.
  • Keep storage mounts, ports, health probes, and startup dependencies explicit.

6. Delivery And System-As-Code Model

  • Decide the minimum reliable delivery flow before buying more tooling.
  • Keep these foundations in place:
    • version control
    • automated build and tests
    • artifact management
    • release management
  • Use package feeds or image registries as the release backbone.
  • Do not let developer laptops become the source of production deployment artifacts.
  • Keep branch strategy only as complex as the release process needs.
  • Treat deployment definitions, routing rules, templates, static site generation, and operational scripts as source-controlled code.
  • If a capability can be rendered ahead of time, prefer static output plus simple hosting over a permanent runtime service.

7. POC And Incremental Validation

  • Run spikes for the risks that could sink the migration, such as:
    • API compatibility
    • packaging and deployment
    • service discovery integration
    • container lifecycle behavior
    • external-service replacement
    • mixed cloud or on-prem hosting
  • Prefer runnable slices over slideware.
  • Validate both architecture fit and team operability.
  • Fail early in the POC stage, not after the organization is already committed.

8. Evaluation

  • Compare candidate architectures by:
    • reduced maintenance complexity
    • deployment independence
    • operational simplicity
    • platform fit
    • team skill fit
    • migration risk
    • long-term extensibility
  • Prefer the design that solves the current pain without forcing premature infrastructure complexity.
  • Name which later signals would justify more splitting, more platform investment, or rollback to a simpler approach.

Design Checks

  • Revisit the plan if microservices are proposed without a clearly named pain they solve.
  • Revisit the boundary if the cut follows technical layers but not business or team ownership.
  • Revisit the split if a service cannot operate independently enough to justify being a separate service.
  • Revisit the migration if rewrite is being chosen only because the old code is unpleasant.
  • Revisit the platform plan if the infrastructure list is larger than the team's operational ability.
  • Revisit the runtime model if service registration, shutdown, and health cannot be aligned with process lifecycle.
  • Revisit the build-vs-run decision if a service exists only to serve mostly static or precomputable content.
  • Revisit the delivery model if production artifacts can still be created ad hoc from a developer machine.
  • Revisit the architecture if every problem is being solved by custom code even when mature services already exist.

Default Output Shape

When the user asks for microservice architecture or migration design, respond in this order unless they request another structure:

  1. Problem Analysis
  2. Microservice Fit
  3. Service Boundaries
  4. Migration Strategy
  5. Platform Capabilities
  6. Runtime And Hosting Model
  7. Delivery And Operability Model
  8. POC
  9. Evaluation
  10. Risks And Refactor Triggers

Use these expectations for each section:

  • Problem Analysis: define the current pain, constraints, and organizational context.
  • Microservice Fit: state why microservices are or are not justified now, and what entry conditions matter.
  • Service Boundaries: define candidate services, responsibilities, autonomy, and build-vs-buy decisions.
  • Migration Strategy: define extraction order, transitional glue, compatibility boundaries, and how to keep shipping.
  • Platform Capabilities: define gateway, discovery, messaging, health, config, and observability needs.
  • Runtime And Hosting Model: define roles, container or host model, lifecycle control, and health behavior.
  • Delivery And Operability Model: define source control, CI/CD, artifacts, registry usage, and static-vs-runtime decisions.
  • POC: propose the smallest validation slices that prove technical and operational feasibility.
  • Evaluation: compare options and state the recommendation.
  • Risks And Refactor Triggers: name what scale, org, or reliability changes would force the next architectural step.

References

  • Read references/microservice-fit-and-boundary-principles.md when the task is about whether microservices fit, where to cut boundaries, autonomy, technical heterogeneity, or why over-splitting is dangerous.
  • Read references/microservice-evolution-and-build-vs-buy-principles.md when the task is about staged migration, modularize-then-serviceize strategy, transitional glue code, mature third-party service adoption, or avoiding hype-driven rewrites.
  • Read references/microservice-platform-and-discovery-principles.md when the task is about API gateways, service discovery, registry patterns, service metadata, internal routing, health checks, or messaging infrastructure.
  • Read references/container-driven-runtime-principles.md when the task is about container-driven design, runtime roles, self-host vs IIS-style hosting, service lifecycle control, or health and shutdown behavior.
  • Read references/delivery-and-system-as-code-principles.md when the task is about CI/CD baseline, artifact and package management, infrastructure or site definitions as code, or replacing unnecessary runtime systems with static generation and simpler hosting.
  • Keep article-specific notes in references/.
  • Promote only stable cross-article guidance back into this SKILL.md.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Microservice Architecture?

Plan Andrew-style microservice architecture and migration by checking whether microservices truly fit, cutting service boundaries around real business responsibilities, evolving systems incrementally instead of rewriting, and engineering platform, runtime, and delivery capabilities as first-class architecture. Use when deciding whether to adopt microservices, decomposing a monolith, planning migration, choosing shared infrastructure, containerizing services, or defining the CI/CD and operability baseline needed to run many services safely.

Firwat Microservice Architecture op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Microservice Architecture besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Microservice Architecture an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/andrew0928/andrew-skills/tree/main/plugins/architect/skills/microservice-architecture an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Microservice Architecture benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Microservice Architecture benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Microservice Architecture domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Microservice Architecture gratis?

andrew0928 huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇