Can I use load balancer for scaling Azure Service Fabric apps -


recently came know azure service fabric , seems way develop scaling applications bunch of micro services. everywhere telling need have stateless front end web services , stateful partitioned internal services. internal services scale partitioning data.

but happens front end services in load? .the chances less doing nothing relying internal stateful services. still should use load balancer before front end services? if so, can host same via service fabric's stateless model using owin or other web host?

the question asked in comment. didnt reply original question different. azure service fabric usage

yes, you'll want distribute load across stateless services well. key difference since stateless, can handle requests in round-robin fashion.

whereas stateful services have partitions, map individual chunks of service's state, stateless services have instances, identical clones of each other, on different nodes. can set number of instances in on default service definition in application manifest. instance, declaration ensure there 5 instances of stateless service running in cluster:

<service name="stateless1">    <statelessservice servicetypename="stateless1type" instancecount="5">      <singletonpartition />    </statelessservice> </service> 

you can set instancecount -1, in case service fabric create instance of stateless service on each node.

the azure load-balancer round-robin incoming traffic across each of instances. unfortunately, there isn't way simulate in one-box environment right now.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -