Open In App

File Service Architecture in Distributed System

A file system is a system where data is stored persistently. In this article, we will see the concept of File service architecture in distributed systems. The access control mechanism is used for sharing of data between multiple users. Furthermore, concurrent access is provided certainly for read-only access.

The following modules are the part of the file system:



 File Service Requirements:

Following are the requirements of file services:

File Service Architecture:

File Service Architecture is an architecture that provides the facility of file accessing by designing the file service as the following three components:



The implementation of exported interfaces by the client module is carried out by flat-file and directory services on the server-side.

 

 

Let’s discuss the functions of these components in file service architecture in detail.

1. Flat file service: A flat file service is used to perform operations on the contents of a file.  The Unique File Identifiers (UFIDs) are associated with each file in this service. For that long sequence of bits is used to uniquely identify each file among all of the available files in the distributed system. When a request is received by the Flat file service for the creation of a new file then it generates a new UFID and returns it to the requester.

Flat File Service Model Operations:

2. Directory Service: The directory service serves the purpose of relating file text names with their UFIDs (Unique File Identifiers).  The fetching of UFID can be made by providing the text name of the file to the directory service by the client.  The directory service provides operations for creating directories and adding new files to existing directories.

Directory Service Model Operations:

3. Client Module: The client module executes on each computer and delivers an integrated service (flat file and directory services) to application programs with the help of a single API. It stores information about the network locations of flat files and directory server processes. Here, recently used file blocks hold in a cache at the client-side, thus, resulting in improved performance. 

Article Tags :