embedded perl

Jonathan Vanasco nginx at 2xlp.com
Wed Apr 11 23:11:12 MSD 2007


I'm considering using the embedded perl module.

a few questions based on this in docs:
	"If a Perl module performs protracted operation, (for example DNS  
lookups, database queries, etc), then the process that is running the  
Perl script is completely tied up for the duration of script.  
Therefore embedded Perl scripts should be extremely careful to limit  
themselves to short, predictable operations."

my setup will have me querying postgres for every url to find the  
correct url on amazon's s3  which i proxy for.

i'm worried about blocking on:
	a) pg query
	b) proxy

will they block each other?  how many nginx workers, realisitically,  
would i need to run?

I'm leaning towards doing all this in twisted python for now , but  
I'm open to nginx

// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
| SyndiClick.com
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|      FindMeOn.com - The cure for Multiple Web Personality Disorder
|      Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|      RoadSound.com - Tools For Bands, Stuff For Fans
|      Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -







More information about the nginx mailing list