Re: Question about deployment of math computing

2020-08-04 Thread Wesley Peng
Thank you David. That makes thing clear. I have made mistake to think starman was event driven, who is really preforked. I think any preforked server could serve our depolyment better. Regards. dc...@prosentient.com.au wrote: Hi Wesley, I don't know all the ins and outs of Starman. I do

RE: Question about deployment of math computing

2020-08-04 Thread dcook
Hi Wesley, I don't know all the ins and outs of Starman. I do know that Starman is a preforking web server, which uses Net::Server::PreFork under the hood. You configure the number of preforked workers to correspond with your CPU and memory limits for that server. As per the Starman

Re: Question about deployment of math computing

2020-08-04 Thread Wesley Peng
Hi dc...@prosentient.com.au wrote: That's interesting. After re-reading your earlier email, I think that I misunderstood what you were saying. Since this is a mod_perl listserv, I imagine that the advice will always be to use mod_perl rather than starman? Personally, I'd say either option

RE: Question about deployment of math computing

2020-08-04 Thread dcook
That's interesting. After re-reading your earlier email, I think that I misunderstood what you were saying. Since this is a mod_perl listserv, I imagine that the advice will always be to use mod_perl rather than starman? Personally, I'd say either option would be fine. In my experience, the

Re: Question about deployment of math computing

2020-08-04 Thread Wesley Peng
Hi dc...@prosentient.com.au wrote: If your app isn't human-facing, then I don't see why a little delay would be a problem? Our app is not human facing. The application by other department will request the result from our app via HTTP. The company has huge big-data stack deployed, such as

RE: Question about deployment of math computing

2020-08-04 Thread dcook
As Mithun suggested, it's going to be slow regardless of which web server option you choose. It depends on your application, but if it's a user-facing web application, one way would be to have your client application make an API call to your backend, the backend enqueues the job in the queue,

Re: Question about deployment of math computing

2020-08-04 Thread Wesley Peng
Hi Mithun Bhattacharya wrote: Do you really need a webserver which is providing a blocking service ? yes, this is a prediction server, which would be deployed in PROD environment, the client application would request the prediction server for results as scores. You can think it as online

Re: Question about deployment of math computing

2020-08-04 Thread Mithun Bhattacharya
Do you really need a webserver which is providing a blocking service ? Assuming you are doing some sort of map reduce you would be better of creating a job queue and placing requests into it. You would have a separate consumer of the queue which could scale up or down depending upon how long the

Question about deployment of math computing

2020-08-04 Thread Wesley Peng
Hi We do math programming (so called machine learning today) in webserver. The response would be slow, generally it will take 100ms~500ms to finish a request. For this use case, shall we deploy the code within preforked modperl ,or event-driven server like dancer/starman? (we don't use DB like

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

2020-08-04 Thread Mithun Bhattacharya
Mojo is good but it is specifically for fast non blocking services. If you are trying to pull up old monolithic applications into the service based world it might take significant rewrite or you use apache/mod_perl :) On Tue, Aug 4, 2020 at 8:05 PM jbiskofski wrote: > Mod Perl is awesome. That

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

2020-08-04 Thread Wesley Peng
jbiskofski wrote: Excelent, stable, FAST, production ready HTTP server: Starman yes starman is good. we use it for rest-api service, the app code is dancer, whose backend server is starman. if we need more concurrent handlers, a simple front-proxy like nginx would be deployed.

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

2020-08-04 Thread Mithun Bhattacharya
Haha my service is meant to be a blackbox - of course it talks to three different REST services :) On Tue, Aug 4, 2020 at 8:05 PM Ruben Safir wrote: > On Tue, Aug 04, 2020 at 07:59:01PM -0500, Mithun Bhattacharya wrote: > > The question is move off to what ? I don't see alternatives being

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

2020-08-04 Thread Ruben Safir
On Tue, Aug 04, 2020 at 07:59:01PM -0500, Mithun Bhattacharya wrote: > The question is move off to what ? I don't see alternatives being shared > which blows an apache+mod_perl setup out of the water. > Maybe JBoss really there is none. mod_perl turns apache into an application server, and

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

2020-08-04 Thread jbiskofski
Mod Perl is awesome. That said, the cool kids today are all about Plack. Google: Dancer, Mojolicious, Catalyst. These allow you to plugin to all parts of the HTTP protocol, but obviously not to modify apache configuration. Excelent, stable, FAST, production ready HTTP server: Starman Even faster,

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

2020-08-04 Thread Ruben Safir
On Wed, Aug 05, 2020 at 10:32:39AM +1000, dc...@prosentient.com.au wrote: > I don't really see the utility of this thread, since these are just circular > arguments based primarily on opinion, and no one is going to convince > someone else that their opinion is wrong. > > That said, I'll just

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

2020-08-04 Thread Mithun Bhattacharya
The question is move off to what ? I don't see alternatives being shared which blows an apache+mod_perl setup out of the water. On Tue, Aug 4, 2020 at 7:56 PM Ruben Safir wrote: > On Tue, Aug 04, 2020 at 09:48:48PM +0100, Mark Blackman wrote: > > > > > > > On 4 Aug 2020, at 21:41, Mithun

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

2020-08-04 Thread Mithun Bhattacharya
Just because the language lets you to relax doesn't mean you shouldn't apply strict validation of all data being worked on :) I don't care about it in a two line cron job but more critical components spend a lot of time on data validation - I am pretty much working in paranoid mode. If you use

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

2020-08-04 Thread Ruben Safir
On Tue, Aug 04, 2020 at 09:48:48PM +0100, Mark Blackman wrote: > > > > On 4 Aug 2020, at 21:41, Mithun Bhattacharya wrote: > > > > I am genuinely curious what are these other "well known" means ? > > > > On Tue, Aug 4, 2020 at 3:37 PM Mark Blackman > > wrote: > >

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

2020-08-04 Thread Wesley Peng
Hi Mark Blackman wrote: mod_perl’s relative efficiency can be achieved by other well-known means. for example? thank you.

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

2020-08-04 Thread Wesley Peng
Joseph He wrote: My company uses Perl for web development. It handles real time payment transactions without any problem. Good software is made by the people not by the language. Maybe I am weak on this point, but how perl handle types more strictly? for example, 123 + '456' this is

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

2020-08-04 Thread dcook
I don't really see the utility of this thread, since these are just circular arguments based primarily on opinion, and no one is going to convince someone else that their opinion is wrong. That said, I'll just point out one thing about the earlier comment "How many platforms can survive 30 years.

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

2020-08-04 Thread James Smith
Don’t talk to me about nginx/starman – it results in most of the errors with concurrency issues we see where I work – but doesn’t report the issues! We just see them when users can’t get responses. The code written in mod_perl had no issues with about 25% of the resources. Starman fails under

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

2020-08-04 Thread Mithun Bhattacharya
I am not sure I understand - by the time we have decided we need perl why not go for Apache and even consider an alternate ? The mod_perl setup can't be the only criteria - we created a sample service and demonstrated it to everyone in the team what needs to happen and now we have services

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

2020-08-04 Thread Mark Blackman
> On 4 Aug 2020, at 21:55, Mithun Bhattacharya wrote: > > Ours is a REST based service so every request has business logic and an > apache+mod_perl instance actually has a better segregation of the webserver > and Perl code - we don't worry about handling the HTTP request and managing >

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

2020-08-04 Thread Mithun Bhattacharya
Ours is a REST based service so every request has business logic and an apache+mod_perl instance actually has a better segregation of the webserver and Perl code - we don't worry about handling the HTTP request and managing children. We trust Apache will do the right thing and if something breaks

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

2020-08-04 Thread Mark Blackman
> On 4 Aug 2020, at 21:41, Mithun Bhattacharya wrote: > > I am genuinely curious what are these other "well known" means ? > > On Tue, Aug 4, 2020 at 3:37 PM Mark Blackman > wrote: > > > > On 4 Aug 2020, at 17:58, Mithun Bhattacharya > >

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

2020-08-04 Thread Mithun Bhattacharya
I am genuinely curious what are these other "well known" means ? On Tue, Aug 4, 2020 at 3:37 PM Mark Blackman wrote: > > > > On 4 Aug 2020, at 17:58, Mithun Bhattacharya wrote: > > > > mod_perl does have value because it does a more efficient utilization of > resources - this is important when

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

2020-08-04 Thread Mark Blackman
> On 4 Aug 2020, at 17:58, Mithun Bhattacharya wrote: > > mod_perl does have value because it does a more efficient utilization of > resources - this is important when fast response time and scalability is > important. The complexity is a known problem but it is not a mystery box > either

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

2020-08-04 Thread Ruben Safir
On Tue, Aug 04, 2020 at 11:42:34AM -0500, Joseph He wrote: > My company uses Perl for web development. It handles real time payment > transactions without any problem. Good software is made by the people not > by the language. > Well, there is that... > Joseph > > On Tue, Aug 4, 2020 at 10:28

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

2020-08-04 Thread Ruben Safir
On Tue, Aug 04, 2020 at 05:04:50PM +0200, André Warnier (tomcat/perl) wrote: > On 04.08.2020 11:31, paul trader wrote: > >On Tue, 4 Aug 2020 at 07:36, James Smith opined: > > > >JS:Others will disagree but the best way I still believe is using mod_perl > >JS:- but only if you use it's full power -

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

2020-08-04 Thread Mithun Bhattacharya
mod_perl does have value because it does a more efficient utilization of resources - this is important when fast response time and scalability is important. The complexity is a known problem but it is not a mystery box either - there is enough documentation which explains what has to happen and

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

2020-08-04 Thread Mithun Bhattacharya
And the point is it is getting very hard to find good perl programmers. It is much easier to find python programmers who can get the job done. On Tue, Aug 4, 2020 at 11:43 AM Joseph He wrote: > My company uses Perl for web development. It handles real time payment > transactions without any

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

2020-08-04 Thread Mark Blackman
> On 4 Aug 2020, at 17:42, Joseph He wrote: > > My company uses Perl for web development. It handles real time payment > transactions without any problem. Good software is made by the people not by > the language. > Agreed, Perl is still fine for server-side work. mod_perl adds less value

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

2020-08-04 Thread Joseph He
My company uses Perl for web development. It handles real time payment transactions without any problem. Good software is made by the people not by the language. Joseph On Tue, Aug 4, 2020 at 10:28 AM James Smith wrote: > > > > > *From:* John Dunlap > *Sent:* 04 August 2020 15:30 > *To:*

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

2020-08-04 Thread James Smith
From: John Dunlap Sent: 04 August 2020 15:30 To: Wesley Peng Cc: mod_perl list Subject: Re: suggestions for perl as web development language [EXT] The fundamental and, in my opinion, fatal flaws of mod_per are as follows: > 1) Concurrency. mod_perl is pretty close to forced to use

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

2020-08-04 Thread tomcat/perl
On 04.08.2020 11:31, paul trader wrote: On Tue, 4 Aug 2020 at 07:36, James Smith opined: JS:Others will disagree but the best way I still believe is using mod_perl JS:- but only if you use it's full power - and you probably need a special JS:sort of mind set to use - but that can be said for

Re: suggestions for perl as web development language

2020-08-04 Thread John Dunlap
The fundamental and, in my opinion, fatal flaws of mod_per are as follows: 1) Concurrency. mod_perl is pretty close to forced to use mpm_prefork because very few perl dependencies are thread safe. 2) mod_perl cannot provide web sockets. Due to these reasons, my organization has started looking at

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

2020-08-04 Thread paul trader
On Tue, 4 Aug 2020 at 07:36, James Smith opined: JS:Others will disagree but the best way I still believe is using mod_perl JS:- but only if you use it's full power - and you probably need a special JS:sort of mind set to use - but that can be said for any language. i will second this motion.

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

2020-08-04 Thread Andreas Mock
Hi all, we also have a big code base whose starting point is more than two decades ago. If you have developers who know their stuff and all the internal developed modules and helpers you're good to go. BUT: We do have problems to get young, fresh perl developers. Why? This language is simply

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

2020-08-04 Thread Jan Kasprzak
Hello, James Smith wrote: : Perl is a great solution for web development. : : Others will disagree but the best way I still believe is using mod_perl : - but only if you use it's full power - and you probably need a special : sort of mind set to use - but that can be said for any

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

2020-08-04 Thread James Smith
Perl is a great solution for web development. Others will disagree but the best way I still believe is using mod_perl - but only if you use it's full power - and you probably need a special sort of mind set to use - but that can be said for any language. From experience - it may be

Re: suggestions for perl as web development language

2020-08-04 Thread Ashish Mukherjee
What about dancer? On Tue, 4 Aug 2020, 12:10 Rolf Schaufelberger, wrote: > I would not consider mod_perl for new projects, but instead highly > recommend using mojolicious https://mojolicious.org/ > > > Am 04.08.2020 um 07:42 schrieb Wesley Peng : > > greetings, > > My team use all of perl,

Re: suggestions for perl as web development language

2020-08-04 Thread Rolf Schaufelberger
I would not consider mod_perl for new projects, but instead highly recommend using mojolicious https://mojolicious.org/ > Am 04.08.2020 um 07:42 schrieb Wesley Peng : > > greetings, > > My team use all of perl, ruby, python for scripting stuff. > perl is stronger