I am reading but having hard time understand difference between the two. I am using Heroku for my apps and until now I was using NGINX to serve my content. I precompressed my static files to gzip and served them like that, turning off dynamic compression in NGINX config file.
Now I am learning about Cloudflare CDN. As I see it is also serving static content. Is there any point in using both NGINX and Cloudflare, what would be the benefits?
How does a flow of that goes when user visits the website?
Would it be:
End User -> Cloudflare DNS -> CDN -> NGINX -> Heroku
End User <- Cloudflare DNS <- CDN <- NGINX <- Heroku