GitLab Well Architected
Cookbook navigation
Prompts / Create Microservice

Create Microservice

DevelopmentArchitectureDeveloperGenerationCreateBeginner

Create production-ready microservices with proper patterns, health checks, and containerization.

For GitLab Duo

prompt

Create a microservice for [FUNCTIONALITY]:

Requirements:
1. [REQUIREMENT 1]
2. [REQUIREMENT 2]

Include:
1. Service structure
2. API endpoints
3. Database integration
4. Message queue handling
5. Health checks
6. Docker configuration
7. CI/CD pipeline

Use the prompt

Explain the service's responsibility and the systems it will call. Your team's existing service conventions help keep the generated structure compatible with how you'll operate it.