Professional Documents
Culture Documents
Gas Subsidy Scheme - Architecture Solution-Dmvdivc90jj5hh1b5
Gas Subsidy Scheme - Architecture Solution-Dmvdivc90jj5hh1b5
Gas Subsidy Scheme - Architecture Solution-Dmvdivc90jj5hh1b5
Exercise
Stakeholders
Government (providing subsidy): Data protection, timely subsidy payment, No transaction should be
missed out due to any sub system failure
Gas consumer: Timely subsidy payment
Gas company: Simple interoperability
Gas agency: Easy to use
Bank: Accurate payment of money – should tally with requests received.
IT dept: Security of PAN #. Only authorized users can access PAN system
Aadhar: Security of Aadhar #. Only authorized users can access Aadhar system
Software development & maintenance team: Systems should be easy to develop and maintain
ASRs
Only authorized systems should be able to access the Set Access privileges
Aadhar system and Income tax systems.
Performa The subsidy payment should be made within 2 days Perform a batch job of processing
nce all bookings done in the last one
hour
Reliabilit It is possible that certain systems involved may be down. Store in queue. Process again after
y It is Ok if there is a small delay in crediting the subsidy. some time
However we should not miss paying the subsidy
The subsidy should reach the correct person. We should Reconcile requests with money
be able to check the accuracy of money transfer at the end transferred
of each day.
Testabilit We should be able to test to some extent even if some Use test stubs & harness where
y systems are not available. external systems are simulated
Architecture diagram
Working of the system
Steps 1, 2, 3: Registration of customers: This requires validation against Aaddhar system. Adhar
systems needs to grant access to the Gas company’s subsidy system say using a user if and password.
The communication may be using a REST API published by Aaddhar system
Steps 4, 5, 6: When a cylinder is delivered to the consumer, an entry is made regarding the sale in
the Distribution system. Sales data is extracted every one hour into files. These files are transferred
to the Subsidy system using FTP or Secure FTP protocol. Al alternate approach could be send the
sales data in real time to the subsidy system via a REST API provided by the Subsidy system
Step 7: The Subsidy processing module reads the received files and processes them – first checking
if the consumer needs to be given subsidy, then sending a fund transfer request to the back. In case
the payment gateway is down these failed requests are stored in a persistent store (queue on disk) and
a program keeps trying every 15 min to connect to the Payment gateway and tries to send the fund
transfer requests for the failed transactions.