Re: Confused about two development utils

2020-12-22 Thread Mithun Bhattacharya
8.8.8.8 is google's public DNS server - yah they can handle whatever you throw at them but you shouldnt misuse it. The whole point of TTL in DNS is for suggested caching - you are welcome to ignore it but you are also being rude to others. $r->connection->client_ip is the IP your apache server is

Re: Confused about two development utils

2020-12-22 Thread Matthias Peng
Thanks Mithun. 1. Since the query is passed through cloudflare, so a CF- header is wanted for fetching client's real IP. 2. Since I am querying PTR via a stub resolver (such as 8.8.8.8), I guess this public dns server has already cached the result. right? Regards. On Wed, Dec 23, 2020 at 9:08 AM

Re: Confused about two development utils

2020-12-22 Thread Mithun Bhattacharya
Replying to the DL. On Tue, Dec 22, 2020 at 7:07 PM Mithun Bhattacharya wrote: > $r->connection->client_ip would report your proxy server if you have a > reverse proxy setup - this is not a common use case though. > > DNS lookup would usually be an expensive process and you are supposed to > be

Re: unsubscribe

2020-12-22 Thread Matthias Peng
please send an empty email to: modperl-unsubscr...@perl.apache.org to unsubscribe yourself from the list. On Tue, Dec 22, 2020 at 11:09 PM jbiskofski wrote: > unsubscribe >

Re: Confused about two development utils

2020-12-22 Thread Matthias Peng
I am a newbie to mp development stack. After one day of work, I have made a simple handler, which returns the client's address and its PTR record. The demo: https://myhostnames.com/ The code shown below: package MyHostname; use strict; use Net::DNS; use Apache2::RequestRec (); use Apache2::R

Re: [Hangout - NYLXS] suggestions for perl as web development language [EXT]

2020-12-22 Thread Mithun Bhattacharya
Can you just shut up and unsubscribe from a Perl mailing list? On Tue, Dec 22, 2020, 4:24 PM derrick wrote: > Why PERL at all anyway? Dump PERL. >

unsubscribe

2020-12-22 Thread LARA ZIOSI
unsubscribe ::DISCLAIMER:: The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, dest

Re: suggestions for perl as web development language [EXT]

2020-12-22 Thread Mithun Bhattacharya
Sounds like a classic use case for Kafka - your service should publish when done and your clients should subscribe to their relevant topics. This is not going to be scalable even with websockets. On Tue, Dec 22, 2020 at 9:06 AM John Dunlap wrote: > We have hundreds of users polling our servers e

unsubscribe

2020-12-22 Thread jbiskofski
unsubscribe

Re: suggestions for perl as web development language [EXT]

2020-12-22 Thread John Dunlap
We have hundreds of users polling our servers every few seconds just waiting for events. In the near future, I'm going to have to do a refactor to avoid users polling two different endpoints for different kinds of events. The vast majority of the request in our access logs are polling requests and

RE: suggestions for perl as web development language [EXT]

2020-12-22 Thread James Smith
There are not many applications which really benefit from multiple threads in web server environments unless you have very low load – as they are only efficient as they can use multiple cores, so you need stupidly speced machines to manage this load properly, and if you are using external resour

Re: suggestions for perl as web development language [EXT]

2020-12-22 Thread Mithun Bhattacharya
Forking is not inefficient unless you work on Windows. Threads are more complicated to code for - thread safe coding is a thing. Agreed web sockets are lacking but they are not essential in all modern application. I think we have discussed this topic enough and nothing new is being shared on the

Re: suggestions for perl as web development language [EXT]

2020-12-22 Thread John Dunlap
mod_perl is horribly inefficient because prefork is inefficient and because each request is single threaded. In addition to this, mod_perl also cannot provide websockets which are essential in a modern application. On Mon, Dec 21, 2020 at 1:26 AM Vincent Veyron wrote: > > [You forgot to cc the l

Re: Confused about two development utils

2020-12-22 Thread Matthias Peng
Can I guess mod_perl is the upgraded version of apreq? Thanks Andre. > On 22.12.2020 06:49, Matthias Peng wrote: > > Hello > > > > I am developing a simple mp2 application. > > I looked for the installation for mp2 utils, and found this two: > > > > libapache2-mod-perl2 > > > > libapache2-mod-apr

Re: Confused about two development utils

2020-12-22 Thread tomcat/perl
On 22.12.2020 06:49, Matthias Peng wrote: Hello I am developing a simple mp2 application. I looked for the installation for mp2 utils, and found this two: libapache2-mod-perl2 libapache2-mod-apreq2 what're their relations? Should I install both, or only the first one? Hi. They are differ