Re:How FoundationDB works and why it works
by damianh on Monday September 18, 2023 @03:44AM
(#37553422)
Since you mention Kestrel I'll assume .NET so I suggest you take a look at yarp. It's fully programmable and "plugins" are just small pieces of middleware, a lot of which is available as a nuget package.
(I'm the author of ProxyKit that predated yarp)
Re:How FoundationDB works and why it works
by jddj on Monday September 18, 2023 @05:36AM
(#37554076)
Oh, very nice. We do use YARP actually on some of those other projects, and was going to mention it. It's great.
This particular (small, internal) project was in Go, so I wanted to use the opportunity to forego any extra runtimes and just used nginx.
I hadn't spun up a webserver other than Kestrel for a long time, and was absolutely looking for the easiest solution for putting a reverse proxy in front of an API. No huge traffic requirements or low latency, seemed a perfect fit for caddy.
Then I googled to make sure that the necessary featureset was there and saw that rate limiting is a plugin that's marked WIP. What's more, there seemed to be a couple to choose from.
So I went through the certbot steps (very quick + straightforward) and wrote the short nginx config based on one page of getting started docs and was up and running.