Nginx như Proxy ngược, Apache là máy chủ web, CloudFlare là CDN và Amazon S3 dưới dạng lưu trữ, nó có đáng giá không?

I was thinking about an Application that uses Apache as the main server and Nginx as a reverse proxy [ from what I understand by using them this way you can manage requests way faster than using just Apache but slower than using just Nginx].
This application would need to store a lot of data: images, videos, audio and to do so I thought that the best way was to use Amazon S3.
At this point, by setting Nginx caching right I think that the pages would load pretty fast right? But if I would be to use also Cloudflare wouldnt it be even faster?
So correct me if Im wrong:
For dynamic content: user -> Nginx -> Apache -> Nging -> user
For Static content cached with Nginx: user -> Nginx -> user
For Static content cached with CDN: user -> Nginx -> Cloudflare -> Nginx -> user
For content that is not cached: user -> Nginx -> Cloudflare -> S3 -> Cloudflare -> Nginx -> user

Is it even worth creating and managing something like this?

Im still learning and I couldnt find anything like this on the internet so maybe Im wrong and this doesnt even make sense.

Video liên quan

Chủ Đề