O que é CDN (Content Delivery Network)?
Definição Rápida
Uma CDN é uma rede de servidores distribuídos geograficamente que entrega conteúdo web aos utilizadores a partir do servidor mais próximo, reduzindo os tempos de carregamento.
A Content Delivery Network (CDN) is a system of servers spread across multiple locations worldwide. When someone visits your website, instead of every request going to a single origin server (which might be thousands of miles away), the CDN serves content from the nearest "edge" server, dramatically reducing the distance data travels.
CDNs work by caching copies of your website's static assets (images, CSS, JavaScript, videos) on servers around the world. When a user in Tokyo visits your US-hosted website, the CDN serves images from a server in Japan instead of sending them across the Pacific Ocean. This can reduce load times from seconds to milliseconds.
Modern CDNs do much more than just cache static files. They offer DDoS protection (absorbing malicious traffic before it reaches your server), SSL/TLS termination, image optimization, edge computing (running code at the edge server), and real-time analytics. Major CDN providers include Cloudflare, AWS CloudFront, Fastly, and Akamai.
For websites built with modern frameworks like Next.js, CDNs like Vercel's Edge Network serve the entire application from the edge, not just static assets. This means dynamic server-rendered pages can also benefit from CDN performance.
Por Que é Importante
Page speed directly impacts business metrics. Studies show that a 1-second delay in page load time can reduce conversions by 7%. A CDN is one of the most impactful performance improvements you can make, often reducing load times by 50% or more for users far from your origin server.
CDNs also improve reliability. If your origin server goes down, the CDN can continue serving cached content. They also protect against traffic spikes: if your site goes viral or faces a DDoS attack, the CDN distributes the load across its global network.
Exemplos Reais
An Australian e-commerce site serving mainly US customers reduced their average page load time from 4.2 seconds to 1.1 seconds by implementing Cloudflare as their CDN
A media company's site survived a traffic spike of 10x normal volume during a breaking news event because their CDN handled the load, while their origin server would have crashed
A SaaS company serving customers globally saw a 60% improvement in page speed for users in Asia and Europe after deploying their assets to a CDN
A video streaming platform uses a CDN to deliver content from 200+ edge locations, ensuring smooth playback regardless of the viewer's location
Termos Relacionados
TTFB (Time to First Byte)
O TTFB mede o tempo desde que um browser solicita uma página até receber o primeiro byte de dados do servidor, servindo como indicador do tempo de resposta do servidor.
Caching
O caching é o processo de armazenar cópias de dados ou ficheiros numa localização temporária para que os pedidos futuros possam ser servidos mais rapidamente.
Web Hosting
O alojamento web é o serviço que armazena os ficheiros do seu website num servidor ligado à internet, tornando o site acessível aos visitantes 24 horas por dia.
Core Web Vitals
As Core Web Vitals são três métricas específicas definidas pela Google que medem a experiência real dos utilizadores nos websites: desempenho de carregamento (LCP), interactividade (INP) e estabilidade visual (CLS).
Precisa de ajuda com cdn (content delivery network)?
A nossa equipa pode ajudá-lo a colocar este conceito em prática. Obtenha uma consulta gratuita para falar sobre o seu projecto.