Question: There exist two servers S 1 and S 2 . Both servers support the following services: Services supported by server S 1 : int SetPrice

There exist two servers S1 and S2. Both servers support the following services:
Services supported by server S1:
int SetPrice(string, float)
float GetPrice(string)
void BuyStock(string, int)
void SellStock(string, int)
Services supported by server S2:
int SetPrice(string, int)
float GetPrice(string)
void BuyStock(int, string)
void SellStock(string, int)
int SetPrice(string, float)
There exist two servers S1 and S2. Both servers support the following services:
Services supported by server S1: int SetPrice(string, float)
float GetPrice(string)
void BuyStock(string, int)
void SellStock(string, int)
Services supported by server S2: int SetPrice(string, int)
float GetPrice(string)
void BuyStock(int, string)
void SellStock(string, int) int SetPrice(string, float)
There exist two client processes and they request the following services:
Client-A
int SetPrice(string, float) float GetPrice(string) void BuyStock(int, string) void SellStock(string, int)
Client-B
int SetPrice(string, int) float GetPrice(string) void BuyStock(string, int) void SellStock(string, int)
The client processes do not know the location (pointer) of servers that may provide these services. Devise a software architecture using a Client-Broker-Server architecture for this problem. In this design, the client processes are not aware of the location of the servers providing these services.
Provide a class diagram for the proposed architecture. In your design, all components should be decoupled as much as possible.
Provide the pseudocode for all operations of the following components/classes: o Broker
o Client Proxy of Client-A
o Server Proxy of server S1.
Provide a sequence diagram to show how Client-A gets int SetPrice(string, float service.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!