Speed ​​Cache Areas / AppFabric Using WCF

I have a service oriented architecture where a web farm full of asp clients ends up on the application server farm from WCF services. Obviously, all access to the database is provided by WCF services. Now I would like to cache my frequently used databases, retrieved objects, using Velocity at the service level level. I am considering including each physical application server in a cache cluster.

According to the Velocity documentation, if I use regions, objects are stored on only one host. I really would not have a problem if each host kept its own cache, provided that I could somehow synchronize them.

So my questions

  • If I create one region on one host, is it also created on another?
  • When I clear the cache area, is it cleared on only one host?
  • If I sign up for a regional level notification on all hosts, can I catch events from one host on another?
  • In this scenario, should I use regions at all or stay away from them?

Hope my questions are clear. In fact, I'm more interested in solving my problem than the answers to my questions.

+3
source share
3 answers

Yes, you read the document correctly that the region will exist on only one host.

"In fact, I would not have a problem if each host kept its own cache, provided that I could somehow synchronize them."

"", , HA? Velocity , , .

: 1. . 2. 3. . , . 4. HA. HA.

+2

, HA. ( " " ), Secondarys = 1 (HA on) , 4 ; , , . , .

+1

. node. HA, , - . , HA , , - .

+1

Source: https://habr.com/ru/post/1728195/


All Articles