130 likes | 285 Views
CS 775 : Distributed Systems. PROJECT Design of a Retail Store Application Sanika Paranjape Satyam K. Das Vin-Jun Tsai December 04, 2001. Introduction. This project is a design implementation of a Retail Store Chain using Distributed Technology The chain is distributed all over the nation
E N D
CS 775 : Distributed Systems PROJECT Design of a Retail Store Application Sanika Paranjape Satyam K. Das Vin-Jun Tsai December 04, 2001
Introduction • This project is a design implementation of a Retail Store Chain using Distributed Technology • The chain is distributed all over the nation • The general design is hierarchic where every member at a level are responsible for carrying out designated actions • Management of operations is also maintained at each and every level of the hierarchy
Hierarchical Design National Region 1 Region 2 Region 3 Zonal 11 Zonal12 Zonal13 Retail 121 Retail 122 Retail 123 Retail 124
Java RMI • 100% Java Technology • RMI adds to Java the power and flexibility of remote procedure calls (RPC) • It preserves the object oriented nature of Java by providing framework within which objects in different JVMs can interact
Design Issues • A Dynamic Hierarchical Design • Implemented only on a nationwide scale with 4 levels of operation • Two interfaces implemented, one for the bottom-most hierarchy and one for the higher levels
Design Issues • Client-Server architecture • Each level deals only with its immediate children • Methods implemented on objects at levels higher than the retail store are called recursively
Design Implementation • Retail Store level • Create RMI Registry • Create the Store implementation object • Bind the object to a RMI registry • Provide update/query operation services for this level • Response for remote access
Design Implementation • Administrative Office level • Create RMI registry • Create the office implementation object • Bind the object to the RMI registry • Accessing the retail store and lower level administrative objects from remote machines • Maintaining a list of accessible remote stores and offices
Design Implementation • Administrative office level • Provide update/query operation services for all lower level remote retail stores • Response for remote access
Design Implementation • Fault Tolerance • Achieved by running duplicate servers at each levels of the hierarchy • Transparent to the users • It is assumed that the servers are essentially robust and the downtime is minimal compared to the operational time • Tested by killing one server process and continuing to access the services at all levels
Strengths of the Design • Availability • Scalability • Dynamic design • Performance
Limitations of the Design • In case both the main server and the mirrored server fails, the application will fail • Caching has not been implemented
Scope for Improvements • A better GUI could have been designed using Applets or Java Swing