OpenSource For You

Andhra Pradesh Rolls Out an Electronic Public Distributi­on System Using Open Source

Totally based on biometric authentica­tion, the electronic public distributi­on system project initiated and implemente­d by the state government of Andhra Pradesh has been developed on PostgreSQL, the open source database.

- By: Jagmeet Singh The author is an assistant editor at EFY.

It was in 2014 that the Andhra Pradesh government decided to go digital and opted for an electronic solution for its PDS (public distributi­on system). While the initial model was tested in a few small regions, the final release can handle as many as four million transactio­ns per day during peak time across all the 13 districts in the state—all this powered by PostgreSQL, the open source database.

The Andhra Pradesh (AP) government gave the task of transformi­ng its public distributi­on system to a team at the National Informatic­s Centre (NIC). Led by civil supplies commission­er and state informatic­s officer (SIO) of Andhra Pradesh, K. Rajasekhar, the NIC team preferred US-based

Enterprise­DB to build a progressiv­e ePDS (electronic public distributi­on system) model, in order to improve the transparen­cy, efficiency and effectiven­ess of the system. The arrival of the ePDS in the region has also set the stage for next-generation solutions, including eSCM (electronic supply chain management) and ePOS (electronic point of sale). All these developmen­ts have led to hyper-scalabilit­y, high-availabili­ty, reliabilit­y and high-concurrenc­y to the entire process of delivering civil supplies in the state, along with low latency.

ePDS: a mission critical applicatio­n

The Postgres database, which currently holds nearly 38 million records, was deployed right at the beginning of the project. This open source database helped to enable Aadhaar-based biometric authentica­tion in real-time, and offer cashless as well as cardless transactio­ns.

“The applicatio­n that we have developed with the support of NIC and Enterprise­DB for distributi­ng rations in the region is very mission critical and citizen-centric,” Rajasekhar told Open Source For You.

The latest Postgres release (version 9.6), which has been powering the distributi­on system, can be scaled to more than 1.5 million transactio­ns per second (TPS). However, the team is working on parallel data processing features to achieve a higher TPS.

The early challenges

Like with any other large scale project, the developmen­t of a huge ePDS also faced some challenges initially. As Ashish Nauriyal, a lead solutions consultant at Enterprise­DB, explained in a conversati­on with Open Source

For You, the major challenges were designing, deploying and maintainin­g Postgres for a mission critical, statewide ePDS. “Some of the specific challenges faced were appropriat­e Postgres versions and project-relevant features, database and server-level tuning, expert guidance, implementa­tion of best practices, tools required to achieve desired database-level tasks such as diagnosis of performanc­e issues, monitoring, high-availabili­ty, maintenanc­e operations, and ongoing database server and applicatio­n level changes,” recalls Nauriyal.

The engineers leveraged their extensive experience in the database management space to overcome these challenges. The engineerin­g team provided support for disaster recovery, security controls, performanc­e tuning, and backups and upgrades in addition to designing and implementi­ng systems. Also, the NIC team was allowed to change the management for the database with minimal or even no production database service disruption.

For the team at NIC, the major obstacle was the execution of tasks like biometric authentica­tion, the Aadhaar-enabled payment interface and hyper-scaling. “With the appropriat­e architectu­re and optimisati­on through the efforts of Enterprise­DB, the solution worked out flawlessly,” says Rajasekhar.

However, as the state government was committed to improving transparen­cy and efficiency, no major administra­tive challenges were faced in opting for the advanced ePDS model.

Linux as a software stack

The NIC engineers used Linux as the software stack for the Postgres deployment. This mix is considered to be the real icing on the cake. “Postgres and Linux originate from a like-minded

community. This community essence makes Linux an optimal platform for running Postgres,” says Nauriyal.

The presence of Linux enables experts like Nauriyal to control the database with ease. It also provides the flexibilit­y to choose from multiple file systems to enable satisfacto­ry results.

“Control and visibility of a platform, along with the flexibilit­y to choose from multiple file systems, help database administra­tors to manage a Postgres database that is performing well,” says Ramakrishn­a Malempati, senior database consultant, Enterprise­DB.

Other open source deployment­s

Apart from PostgreSQL, the NIC team also deployed Cassandra and MongoDB as the database solutions to make its ePDS, eSCM and ePOS successful in the state. The use of all these open source solutions has reduced the CAPEX and OPEX of this project to zero.

The success of AP’s ePDS model has led to other states planning for its replicatio­n, with Rajasthan and Maharashtr­a being the first two states to do so.

 ??  ??
 ??  ?? N. Chandrabab­u Naidu, chief minister, Andhra Pradesh
N. Chandrabab­u Naidu, chief minister, Andhra Pradesh
 ??  ?? The ePDS project: Maintainin­g humongous public distributi­on records in a digital form
The ePDS project: Maintainin­g humongous public distributi­on records in a digital form

Newspapers in English

Newspapers from India