I got an idea to use a reverse proxy low in RAM 1GB and using the swap when low in memory.
I don't mean thrashing like crazy in a wrong way. I just mean that there is no RAM, and the swap is used.
Assume it runs debian with nginx and .NET Core (or maybe just nginx since so tiuy) as a web server and just does som sort of HTTP Header extraction validation of the Authrorization header, and then works just as a reverse proxy and router to other servers.
ANd a assume few requests taking megabytes of RAM and not many small requests.
How would it affect the latency, request throughput, and opererations?
Where can I find benchmarks of debian web servers thrashing?