c# - share data status on different instances of WCF -



c# - share data status on different instances of WCF -

i have 2 servers(and more later) wcf service, both behind load balancer. client application, in multiple servers(also loadbalanced), phone call wcf action, lets save. same data, lets client information, opened several users @ same time. save action can be, then, executed several users @ same time, , phone call go different wcf servers.

i want when user phone call save ui, , there save in progress ui on same client data, sec user alerted it. that, wcf instances should know actions been executed in other instances.

how can synchronize info status between wcf server instances ? dont want share data, status of data(opened, save in progress, that)

please advice, thanks,

i'm working c#/.net4

added: wcf hosted within windows service.

the problem having 1 of resource management.

you trying resolve way how can service clients somehow know open handles each other have on internal state within service, , forcefulness them orchestrate in order handle this.

pushing responsibility onto clients going create things much more complex in long run. ideally clients should able phone call service in straightforward manner possible, without having know other clients may using service. @ clients should expected retry if phone call unsuccessful.

normally handle these situations using locking - clients commit changes simultaneously , 1 have retry based on exception raised or specific response sent (perhaps including updated clientinformation object), depending on how handle it.

if absolutely have implement notifications stuff, @ using wcf duplex bindings, whereby service exposes callback contract allow clients register handler notification can used send notifications clients on different channel 1 request made on. these however, complex @ best set , not scale particularly well.

edit

in response comment, other half of question sharing state across load balanced service endpoints.

load balancing wcf load balancing websites - if need share state across them must configure backing info store services have access to.

in case obvious place database. need create sure concurrency/deadlock related problems caught , handled in service code (using nhibernate persist info can help this). don't see have real problem here.

c# asp.net .net wcf

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -