Architecture

OpenCRVS technical architecture is designed using modular, event-driven microservicesarrow-up-right. Each microservice and every OpenCRVS component is configurable, scalable and protects data sovereignty by being provisionable in on-premise private tier 2/3 data centres using included Docker Swarmarrow-up-right configurations.

To learn about the server hosting & network architecture required for hosting OpenCRVS visit this section.arrow-up-right

OpenCRVS provides:

  • Easy country configuration via a dedicated config microservice, simple csv files and a configuration UI.

  • Standards-based multi-language content management.

  • A market-leading, powerful search, audit and de-duplication engine powered by Elasticsearcharrow-up-right.

  • An Amazon S3 compatible object store for storing supporting documentation attachments powered by Minioarrow-up-right.

  • An automated continuous integration, delivery and testing suite.

  • A single JS, TypeScriptarrow-up-right codebase for backend, desktop and mobile using Progressive Web Application technologyarrow-up-right for offline and low-connectivity access.

  • External server and application health monitoring using Kibanaarrow-up-right

  • Automatic LetsEncryptarrow-up-right SSL configuration

  • SMS 2-Factor Authentication with well defined user role authorization privileges

  • HTTP hooks for programmatically extending the backend business logic

OpenCRVS is a full-stack that is designed to give you the lowest possible "total cost of ownership"arrow-up-right.

Docker Swarm

Docker Swarmarrow-up-right was chosen by our architects in 2018 because, at the time, dependencies supporting bare-metal installations for Kubernetes architectures were in their infancy and difficult to understand.

Many countries cannot legally support international data storage of citizen data on a public cloud so were dependant on something quick and easy to install in a Tier-2 data centre.

Kubernetes available in OpenCRVS 2.0

Since 2018, Kubernetes bare-metal tooling has advanced significantly. Our work-in-progress Kubernetesarrow-up-right installation will be easier to use and configure. As of OpenCRVS 1.9, Docker Swarm is still the supported deployment mechanism.

Previously unskilled system administrators can quickly up-skill in the techniques of Docker infrastructure management using Docker Swarm.

Databases

OpenCRVS uses Elasticsearcharrow-up-right, an industry standard, NoSQL document orientated, real-time de-duplication & search engine. Lightning fast, intelligent civil registration record returns are possible, even with imprecise “fuzzy” search parameters.

De-duplication management to ensure data integrity is essential to any civil registration system. A fast search engine lowers operational costs and improves the user experience for frontline staff.

Elasticsearch is also used with Kibanaarrow-up-right for application and server health monitoring.

Event data is stored in PostgreSQLarrow-up-right

Some legacy code in OpenCRVS 1.9 still uses MongoDBarrow-up-right and InfluxDataarrow-up-right. These dependencies will be deprecated.

Analytics are developed in Metabasearrow-up-right, but any BI tool can be used as a substitute.

Microservices

The core of OpenCRVS is a monorepo organised using Lernaarrow-up-right. Each package represents a single NodeJS microservice. Following the microservicearrow-up-right, 1 service per container model, every package is independently scalable in a single dockerarrow-up-right container.

\

The OpenCRVS microservice architecture enables continuous evolution of its business requirements.

The microservices are written in TypeScriptarrow-up-right (a strictly typed superset of JavaScript that compiles to JavaScript)

Each microservice in OpenCRVS has no knowledge of other services or business requirements in the application, and each exposes it’s capabilities via JWTarrow-up-right secured APIs.

Client applications are built using Reactarrow-up-right and progressive web applicationarrow-up-right technology. This means that we can take advantage of offline functionality and native mobile features using Workboxarrow-up-right, without the TCO overhead of maintaining multiple web and mobile codebases and respective App/Play Store releases. In remote areas, registrars can save a configurable number of registrations offline on their mobile phone, using Chrome's IndexedDBarrow-up-right.

Last updated