S
S
Sergey Rogozhkin2015-03-25 13:41:27
Nginx
Sergey Rogozhkin, 2015-03-25 13:41:27

How to slow down Nginx to test the frontend for slow connections?

Testing and optimizing the frontend with a bunch of scripts. You need to see how the page will behave with slow connections. Current solution: in chrome/opera inspector, Network throttling section. Enough for the first time, but there are still mobile devices that behave differently in real life than in the simulator.
I have Nginx on my work laptop. I'm looking for a way to slow down the return of static at the Nginx settings / modules level. As a solution, you can give statics through a special script, for example, in php, but suddenly it can be more beautiful.
Can you please tell me if there is an elegant way?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
E
egor_nullptr, 2015-03-25
@thecoder

nginx.org/ru/docs/http/ngx_http_limit_req_module.html

A
Andrey Mokhov, 2015-03-25
@mokhovcom

NetLimiter - weight

E
enixpp, 2015-03-25
@enixpp

In chrome devTools you can emulate a 3g/wifi/edge/etc set

V
Viktor Vsk, 2015-03-25
@viktorvsk

For such purposes, I once used https://github.com/d6y/sloppy
However, at some point, there may have been incompatibilities with Java versions, etc., so I can’t say anything today

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question