H
H
Hazrat Hajikerimov2019-04-27 12:56:43
Nginx
Hazrat Hajikerimov, 2019-04-27 12:56:43

How to set up a caching server?

Good afternoon, such a task, there is a server where the stream goes (nginx + rtmp-module, hls), it generates a playlist and small stream files. Everything works fine until a big call hits the stream. users and server bandwidth can not cope.
When using caching on the CDN side (cloudflare) solves the problem, but when the amount of cached traffic exceeds 1 TB, it blocks us.
There is an idea to use the cloud infrastructure (aws, i.cloud, vscale) to create a large stake. servers that will work in the same way as clodflare, that is, if there is no file in the server cache, it requests it from the server where the stream is going and caches it, then gives the already cached file.
How to organize something like this? Are there any ready-made modules for nginx for this task?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumov, 2019-04-27
@inoise

AWS has Cloudfront. cache them)

O
Olga Baibakova, 2019-04-29
@baolya

If you want to try a third-party product, come visit us for a free Media Platform test .
You can send us an rtmp stream, which we will convert to hls and distribute to end users via CDN.
The trial lasts 14 days.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question