A CDN is a network of servers spread around the world that keep copies of your content, mostly static files: images, videos, HTML, CSS and JavaScript. It's like an ice cream chain with a shop in every neighborhood: you don't have to go to the factory to buy a cone. If your server is in the United States and someone visits from London, the CDN serves the images from London. Instead of traveling 6,000 km, the data travels a few.
A CDN improves several things at once. Users get content from a nearby data center, so it loads faster. Your server doesn't have to serve those requests, so it handles more. It lowers bandwidth costs and adds availability and redundancy: if one edge goes down, another answers. It's like having warehouses in every city: orders arrive sooner and the factory isn't swamped.
A CDN has costs too. It can be expensive, especially with heavy traffic, because you pay for every GB delivered. Some countries or organizations block the IPs of popular CDNs. And if most of your users are in a country where the CDN has no servers, data may travel farther than without a CDN. It's like opening branches: they help if customers are nearby, not if they're all in another city.
Edge servers are the CDN's shops: many of them, spread around the world, each with copies of the content. They're grouped into edge locations, like London, São Paulo or Tokyo. When someone asks for an image, they get it from the nearest edge. It's like ordering a pizza: the branch in your neighborhood sends it, not the head office. London to London takes about 10 ms; London to the United States, about 80 ms.
A CDN has 2 kinds of server. The origin server holds the original versions of the content: it's your server. Edge servers hold cached copies, spread around the world. It's like a book: the publisher has the original and each city's bookstores have copies. Once the edges have the copies, almost nobody asks the origin for anything, so it stays free and handles more.
With a push CDN, you upload content to the CDN every time it changes, and rewrite URLs to point to it. It's like sending copies of your book to every bookstore as soon as a new edition comes out. Only new or changed content is uploaded, so traffic is low, but it takes more storage because everything stays stored. It fits sites with little traffic or content that rarely changes: upload once and done.
With a pull CDN, the CDN fetches content by itself when it's requested. If a user asks for an image the edge doesn't have, the edge brings it from the origin, stores it and hands it over. It's like a bookstore that orders a book only when a customer asks for it, and then keeps it on the shelf. It needs less maintenance and fits high-traffic sites; the cost is that the first visit to each file is slower.