compliance-framework / portal

The web application that houses all the dashboards and management-related tasks.
2 stars 1 forks source link

Use Static middleware SPA mode #22

Closed radiosilence closed 7 months ago

radiosilence commented 7 months ago

Previously was relying on the specificity of routes to get a fallback.

This is does it the proper way.

Currently it doesn't actually work, I am not sure if this is a bug in echoserver at this point.

radiosilence commented 7 months ago

Cheers pal though it still doesn't actually work.

Part of me just wants to write a server purely for fully cached SPAs that:

But it is needless work, our webserver doesn't have to be that fast. I think what we have works fine.

radiosilence commented 7 months ago
wrk -t12 -c400 -d30s http://127.0.0.1:8081/index.html
Running 30s test @ http://127.0.0.1:8081/index.html
  12 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     8.24ms   10.26ms 136.11ms   86.21%
    Req/Sec     6.39k     1.03k   19.17k    76.11%
  2293500 requests in 30.10s, 2.08GB read
  Socket errors: connect 0, read 386, write 0, timeout 0
Requests/sec:  76188.06
Transfer/sec:     70.62MB

I think it will b ok