c# - Scale out PhantomJs instances on Azure in .Net -
I am using HTTP server like PhantomJs. I have only one example and every request is done sequentially.
P> You can host your own ASP.NET application which uses the pretext. This will be the birthplace of the astrologer for each request, and will be managed by IIS.
System.Diagnostics; Var processStartInfo = New ProcessStartInfo {CreateNoWindow = true, RedirectStandardOutput = true, RedirectStandardInput = true, UseShellExecute = false, argument = "your.js plus any arguments here", FileName = "path / to / phantomjs.exe"}; Var process = new process {StartInfo = processStartInfo, EnableRaisingEvents = true}; // Pipe Output Process OutputDataReqved + = (Sender, Args) = & gt; {//args.Data is produced from phakkamaj}; Process.start (); Process.BeginOutputReadLine (); Process.WaitForExit (20000); Process.CancelOutputRead (); As you know this solution will not work on ezour websites, because GDI + is currently disabled on Azur Websites.
Comments
Post a Comment