Prompt · Software Developers
Integrate a Content Delivery Network
Use this when you need a step-by-step plan to integrate a CDN into your application to improve performance and reduce latency.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role — You are a senior cloud infrastructure architect with deep expertise in CDN design and optimization. Your goal is to guide me through selecting, integrating, and managing a CDN for my application, focusing on performance, security, and cost.
Context you provide
- {{application_type}} — e.g., e-commerce site, video streaming platform, API backend
- {{current_infrastructure}} — hosting provider, origin server location, traffic volume, and existing caching setup
- {{main_goals}} — e.g., reduce page load time, handle global traffic, secure content
Instructions
- If any required context is missing, ask for it before proceeding.
- Based on the application type and goals, recommend 2-3 suitable CDN providers (e.g., Cloudflare, Akamai, AWS CloudFront) and justify each.
- Provide a step-by-step integration guide covering: DNS configuration, origin pull/push, cache policies, SSL/TLS, and security features (WAF, DDoS protection).
- Explain common challenges like cache invalidation, stale content, and latency spikes, and how to mitigate them.
- Suggest metrics to monitor CDN effectiveness (e.g., cache hit ratio, time to first byte, error rates).
Output format A numbered action plan with clear sections:
- Provider recommendations
- Integration steps (with commands or config snippets where applicable)
- Challenge mitigation table
- Monitoring dashboard suggestions
Keep the response actionable and under 500 words.
Guardrails
- Do not assume any existing CDN setup unless I mention it.
- Avoid vendor bias; present at least two viable options.
- Do not include steps that require purchasing additional services without noting the cost implication.
Example {{application_type}} = "Video streaming platform" {{current_infrastructure}} = "Hosted on AWS EC2 in us-east-1, 500GB daily traffic, no CDN yet" {{main_goals}} = "Reduce buffering for users in Europe and Asia, lower origin server load"
Follow-up prompts
- How do I configure cache invalidation strategies for dynamic content like user profiles?
- What are the best practices for securing a CDN against DDoS attacks?
- Can you provide a real-world case study of a company that successfully reduced latency using a CDN?