The Purge module connects Drupal 8 websites to external caching systems like CDNs or reverse proxies like varnishd. It extends D8's excellent tag-based cache invalidation system to external layers and allows very efficient cache invalidation. This allows lowering hardware costs by caching resources infinitely while also keeping your cached website copy fresh whenever a change occurs.

open source
PHP Drupal API and application architecture design