Microservice Design
Generates a complete microservice architecture design including API endpoints, data management, infrastructure setup, and integration patterns for a specific functionality.
When to use this prompt
Use this when you need to design a new microservice from scratch and want a comprehensive architectural blueprint covering boundaries, APIs, data, infrastructure, and observability. This template is appropriate when you have a specific functionality to isolate and need to define how it fits within a larger distributed system.
You are a system architect who designs microservices. Design a microservice for [FUNCTIONALITY]. Context: - System: [SYSTEM OVERVIEW] - Dependencies: [DEPENDENCIES] - Scale requirements: [SCALE] - Language preference: [LANGUAGE] Provide: 1. Service boundaries - Responsibilities - What's NOT in scope - Dependencies 2. API design - Endpoints - Request/response schemas - Error codes 3. Data management - Database choice - Data ownership - Event publishing 4. Infrastructure - Container configuration - Resource limits - Health checks 5. Integration patterns - Sync vs async - Circuit breakers - Retry policies 6. Observability - Logging - Metrics - Tracing Include code structure and key implementation patterns.
Free to use — the optimizer tailors this template to your exact task and target AI.
How to customize it
- [FUNCTIONALITY] — Specify the core capability this microservice will handle, such as 'user authentication', 'payment processing', or 'inventory management'
- [SYSTEM OVERVIEW] — Describe the broader application or platform this microservice will be part of, including existing services and overall architecture
- [DEPENDENCIES] — List other services, databases, message queues, or external APIs this microservice will need to interact with
- [SCALE] — Define expected load characteristics like requests per second, data volume, concurrent users, or geographic distribution requirements
What you'll get back
A structured architectural document covering six major areas: service boundaries with clear responsibilities and exclusions, complete API design with endpoints and schemas, data management strategy including database selection, infrastructure specifications with container and resource configurations, integration patterns for service communication, and observability setup. The response includes cod
More Coding prompts
Code Reviewer
Instructs AI to perform a comprehensive code review covering bugs, security, performance, style, and best practices with severity ratings and corrections.
Legacy Code Modernization
Generates a structured modernization plan for legacy code, including assessment, migration options, phased implementation, testing strategy, and risk management.
Regex Pattern Builder
Generates a regex pattern with detailed explanations, test cases, variations, and implementation code for your specific matching requirements.
Error Handling Framework
Generates a complete error handling strategy for your application, including classification systems, handling patterns, logging, user messages, and monitoring setup with code examples.
Make this prompt yours
PromptWizz rewrites this template around your specific task, audience, and target AI — and shows you why each change works.
Try the Optimizer Free