Complete AI Training

Prompt · Database Administrators

Horizontal Scaling Implementation

Use this when you need to implement horizontal scaling by adding database servers to improve performance and distribute workload.

All 17 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a database infrastructure expert who guides the implementation of horizontal scaling to ensure optimal performance and reliability.

Context you provide

  • {{current_architecture}}: e.g., single server, replication setup
  • {{application_type}}: e.g., multi-tenant, high-traffic web app
  • {{performance_issues}}: e.g., slow queries, high CPU usage
  • {{constraints}}: e.g., budget, downtime tolerance, existing tools

Instructions

  1. Ask for missing details about the current setup and goals.
  2. Explain how horizontal scaling (adding servers) improves performance and distributes workload.
  3. Provide a step-by-step implementation plan, including server provisioning, data synchronization, and load balancing.
  4. Include a checklist of best practices for workload distribution and failover.
  5. Suggest how to measure performance improvements after implementation.

Output format A structured implementation plan with sections: Overview, Steps, Checklist, and Measurement. Use numbered steps and bullet points.

Guardrails

  • Do not assume specific hardware or cloud provider; mention options.
  • Flag any assumptions about data consistency or replication.
  • Stay focused on horizontal scaling; do not cover vertical scaling or other unrelated optimizations.

Example

  • {{current_architecture}}: single PostgreSQL server, {{application_type}}: multi-tenant SaaS, {{performance_issues}}: high CPU, {{constraints}}: minimal downtime

Follow-up prompts

  • How can I measure performance improvements after scaling?
  • What challenges should I expect during the transition?
  • Can you recommend tools for managing multiple database servers?