Consider a system that includes a database client and two redundant database servers. Both database servers are identical: the first acts as a main server, the second acts as a hot back-up in case the main server fails. The database client accesses the severs through a single component called a “gateway,” hence hiding from the client which server is currently being used. A separate policy object called a “watchdog” monitors the requests and responses of the main server and, depending on the responses, tells the gateway whether to switch over to the back-up server. What do you call this design pattern? Draw a UML class diagram to justify your choice.
What will be an ideal response?What will be an ideal response?
This can be interpreted as a Strategy in which two concrete strategies are identical, that is, they are instances of the
same class (Figure 8-3). It can also be argued that this is a Proxy pattern which interacts with an external policy
object.
Computer Science & Information Technology
You might also like to view...
A ________ is a row of information that contains data for one entity
A) record B) rule C) field D) column
Computer Science & Information Technology
What is the keyboard shortcut for the Fill command menu?
What will be an ideal response?
Computer Science & Information Technology
Where an access point is to be mounted is determined by doing a(n) _______
Fill in the blank(s) with correct word
Computer Science & Information Technology
How do you construct the SELECT query?
What will be an ideal response?
Computer Science & Information Technology