Anycast DNS acts during the first access to the website, realizing the first request to the closer DNS server, meanwhile, a CDN acts as website files cache system, speeding up the data transfer among server and visitor.