Suggestion re the manual

Rob T alanb at ucora.com
Fri Jun 10 08:02:16 UTC 2022


On Friday, 10 June 2022 at 00:59:00 UTC, Adam Ruppe wrote:
> On Friday, 10 June 2022 at 00:35:17 UTC, Rob T wrote:
>> What I mean by that is incorporate the http code directly into 
>> our application and compile it into a single executable binary
>
> Huh, I'm surprised you had trouble with vibe since it works 
> that way too.
>
> Of course, I have my own D libraries (the oldest continually 
> maintained web code in D) which is not just embedded, it is a 
> single source file http server with no extra dependencies!
>
> ...but I never bothered doing https support since I prefer to 
> use the outer proxy server for that. Probably about 50 lines to 
> add it, maybe I will one of these days.

Yeah last I remember Vibe was being re-coded to work like a 
library rather than only as an http server, like I said it was a 
long time ago when I was looking around at Vibe. I'll take a good 
look again, it sounds promising. I'll also take a look at your 
library as well, this must be it 
https://code.dlang.org/packages/arsd-official%3Ahttp

We also use a proxy (haproxy), main reason is we still have to 
support ipv4, and a proxy is ideal solution for a server with 
only 1 ipv4 address. We run most things today as lxc 
containerised appliances, one server will have many containers. A 
proxy however does come with a single point of failure issue, it 
would be more ideal for ipv6 enabled clients to by-pass the proxy 
and go directly to each container.




More information about the Digitalmars-d mailing list