Architecture
OpenCRVS technical architecture is designed using modular, event-driven microservices. 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 Swarm configurations.
To learn about the server hosting & network architecture required for hosting OpenCRVS visit this section.
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 Elasticsearch.
An Amazon S3 compatible object store for storing supporting documentation attachments powered by Minio.
An automated continuous integration, delivery and testing suite.
A single JS, TypeScript codebase for backend, desktop and mobile using Progressive Web Application technology for offline and low-connectivity access.
External server and application health monitoring using Kibana
Automatic LetsEncrypt 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".
Docker Swarm
Docker Swarm 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 Kubernetes 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 Elasticsearch, 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 Kibana for application and server health monitoring.
Event data is stored in PostgreSQL
Some legacy code in OpenCRVS 1.9 still uses MongoDB and InfluxData. These dependencies will be deprecated.
Analytics are developed in Metabase, but any BI tool can be used as a substitute.
Microservices
The core of OpenCRVS is a monorepo organised using Lerna. Each package represents a single NodeJS microservice. Following the microservice, 1 service per container model, every package is independently scalable in a single docker container.
\
The OpenCRVS microservice architecture enables continuous evolution of its business requirements.
The microservices are written in TypeScript (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 JWT secured APIs.


Client applications are built using React and progressive web application technology. This means that we can take advantage of offline functionality and native mobile features using Workbox, 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 IndexedDB.
Last updated