jafayer / DinoDNS

https://dinodns.dev
2 stars 0 forks source link

Remove await in network handlers #11

Closed jafayer closed 1 month ago

jafayer commented 1 month ago

There doesn't appear to be much of a meaningful performance difference between the await and .then implementations in this situation, but it does make it a little bit easier to chain error handling onto the handlers just to make this a little bit more hardened to crashes.

A sidenote: did some load testing and with this current implementation, I was able to benchmark locally with a wildcard query generator using Locust. QPS was ~2600 peak, but with only 40% utilization on 1CPU/1GB before my computer stopped being able to support Locust's efforts to generate queries.

Will clearly require some more robust load testing infrastructure.

Dockerfile Update:

Error Handling Improvements: