Forum Feature requests

Always running prince process

SoreGums
Prince is all ready speedy - less than a second to generate 2-3 page pdf's

How I use prince is with a ruby program that spawns a prince process on each request. What I'd like to do is spawn prince and leave it running.
Prince would then wait for input, digest input, return pdf stream then go back to waiting for input.

I see the advantage in throughput being the benefit of being able to do this. Throughput is not an issue atm - however we are developing more and more apps that will be using this prince server and want to just set and forget - not have to worry about scaling issues.

Make sense?

Thanks,

Nick
mikeday
We've tried this in the past, but found that startup cost is not a significant factor in running time (eg. only about 0.02 seconds). For high throughput you would want to run multiple Prince instances in parallel, and managing this with long-running processes and queuing would add a significant complexity burden.
SoreGums
ok good to know.

Think I'll use Unicorn and a simple rack app to do I what I want then.

Thank you