c#


Scale out PhantomJs istances on Azure in .Net


I'm using PhantomJs like http server.
I have only one instance and every request is performed sequentially.
I would to scale out PhantomJs http server istances using Windows Azure with .Net framework (if possible)
Does anyone have any suggestions?
Thanks
You can host your own ASP.net application that uses preccess.start for phantomjs
this will create phantomjs instance for each request, and its managed by IIS
System.Diagnostics;
var processStartInfo = new ProcessStartInfo
{
CreateNoWindow = true,
RedirectStandardOutput = true,
RedirectStandardInput = true,
UseShellExecute = false,
Arguments = "your.js plus any arguments here",
FileName = "path/to/phantomjs.exe"
};
var process = new Process
{
StartInfo = processStartInfo,
EnableRaisingEvents = true
};
//pipe the output
process.OutputDataReceived += (sender, args) => {
//args.Data has output from phantomjs
};
process.Start();
process.BeginOutputReadLine();
process.WaitForExit(20000);
process.CancelOutputRead();
As you know this solution will not work on Azurewebsites because GDI+ is disabled on Azurewebsites right now.

Related Links

Would someone check my code in setters and getters, just to make sure it is right?
Include path expression tree error
Object Does not contain a defination for Database and no extension method Database
Display tooltip if text is exceeds the available width of textbox
How to allow any file download in IIS 7.5
Merging Templatefield vs Boundfield
JavaScriptEngineSwitcher xml namespace missing
C# Background Worker with zipfile(Ionic.dll)
Cubic Bezier reverse GetPoint equation: float for Vector <=> Vector for float
Set focus to edit control within wpf datagrid, depending on visible element
Installing using NUGet and Adding it to Project References
Ternary operator in actualization of a loop
asp.net arabic datetime error
Read Platform information from .msi
Open a form in panel from another form and closing existing form winforms
Enumerable.Range() iteration index

Categories

HOME
postgresql
virtual-machine
network-programming
xamarin.forms
window.open
phantomjs
where
assign
aggregate-functions
hibernate-mapping
pip
fetch
ndepend
mbed
minimum
responsive
luis
versioning
caldav
bootstrap-datetimepicker
datazen-server
android-navigation-drawer
fibonacci
connectiq
onclicklistener
struts
apdu
ckeditor4.x
rancher
hierarchy
openoffice-impress
overflow
akamai
node-soap
angularjs-resource
campaign-monitor
motherboard
maven-2
mongoid5
motion
origami
ngrok
linkurious
ninja-forms
ssdp
glide-image-library
jvisualvm
java-5
compiler-warnings
binary-decision-diagram
spring-data-commons
infovis
text-formatting
history
e4
dotnet-cli
visualizer
typewriter
androiddesignsupport
timex
easy68k
require-handlebars
netlink
aws-kms
razorengine
methodology
askbot
app-data
android-facebook
libgcrypt
p4python
cl.exe
google-experiments
applinks
chunks
caption
cordova-3
growl
api-eveonline
zoneminder
powerpoint-2010
livescript
msdropdown
step
sendy
slimscroll
node-mongodb-native
facebook-java-api
vbaccelerator
imaplib
ardor3d
friendly-url
wpd
bho
generator-expression
doxia
custom-cursor
django-admin-tools
mysql-connector
vectorwise
browser-state
data-formats
script-tag
cstring

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile