WebUI devices event and loraFrames requests are really slow

i use web-ui to watch device’s state changes, but on V4, /api.InternalService/StreamDeviceEvents and /api.InternalService/StreamDeviceFrames are really really slow, always delay (i can see the uplink logs but the request delay for a long time)

anybody face the same problems and how can i speed up the requests?


Is there are proxy / load-balancer in front of ChirpStack?

yes, i using the nginx as a proxy…
now i change the nginx to

server {
    server_name dev.com www.dev.com;
    listen 80;
    rewrite ^(.*) https://dev.com$1 permanent;
}


server {
    listen 443 ssl http2;
    server_name dev.com www.dev.com;
    ssl on;

    include /etc/nginx/ssl_params;
    ssl_certificate     /root/certs/*.dev.com/fullchain.cer;
    ssl_certificate_key /root/certs/*.dev.com/*.dev.com.key;

    include /etc/nginx/hsts_headers;

    index index.html index.htm index.nginx-debian.html;

    location ~ ^/api.* {
        grpc_pass grpc://127.0.0.1:8080;
    }

    location / {
        proxy_pass http://127.0.0.1:8080;
    }
}

it seems work.
thanks your reply!

2 Likes