# Architecture

## Service Architecture

mGramSeva is built on top of the [DIGIT ](https://docs.digit.org/)Platform. It consists of distinct layers listed below.​

**Back End**

* Core Services
  1. ​[User Services ](https://core.digit.org/platform/core-services/user-services)(egov-user)
  2. [​User OTP](https://core.digit.org/platform/core-services/user-otp-service) (user-otp)
  3. ​[Access Control](https://core.digit.org/platform/core-services/access-control-services) (access-control)
  4. ​[MDMS](https://core.digit.org/platform/core-services/mdms-master-data-management-service)
  5. [​ID Generation Service](https://core.digit.org/platform/core-services/id-generation-service) (id-gen)
  6. ​[Payment Gateway](https://core.digit.org/platform/core-services/payment-gateway-service) (pg-service)
  7. ​[Workflow Service](https://core.digit.org/platform/core-services/workflow-service) (wf-service)
  8. ​[Persister](https://core.digit.org/platform/core-services/persister-service)
  9. ​[Indexer](https://core.digit.org/platform/core-services/indexer-service)
  10. ​[Encryption Service](https://core.digit.org/platform/core-services/encryption-service) (data-encryption-service)
  11. ​[Localization Servic](https://core.digit.org/platform/core-services/localization-service)e (localization-service)
  12. ​[Boundary Servic](https://core.digit.org/platform/core-services/location-services#api-list)e (location-service)
  13. ​[URL Shortening Service](https://core.digit.org/platform/core-services/url-shortening-service) (url-shortening-service)
  14. ​[PDF Generation Service](https://core.digit.org/platform/core-services/pdf-generation-service) (pdf-generator)
  15. ​[SMS Notifications](https://core.digit.org/platform/core-services/sms-notification-service) (notification-sms)
  16. [Email Notifications](https://core.digit.org/platform/core-services/email-notification-service) (notification-email)
  17. ​[Filestore](https://core.digit.org/platform/core-services/filestore-service)
  18. ​[API Gateway](https://digit-discuss.atlassian.net/wiki/spaces/EPE/pages/36700192/API-Gateway)​
* Business Services
  1. ​[Billing Service​](/mgramseva/introducing-mgramseva/platform/configure-mgramseva/billing-service.md)
  2. ​[Collection service​](https://core.digit.org/platform/api-specifications/collection)
  3. ​[Apportioning Service​](/mgramseva/introducing-mgramseva/platform/configure-mgramseva/apportion-service.md)
  4. ​[Dashboard Ingest​](https://core.digit.org/platform/core-services/national-dashboard-ingest)
  5. ​[Dashboard Analytic](https://core.digit.org/focus-areas/analytics)s (DSS)
* Municipal Services
  1. ​[Property Service](/mgramseva/introducing-mgramseva/platform/configure-mgramseva/property-services.md) (property-services)
  2. ​[Water Service Calculator](/mgramseva/introducing-mgramseva/platform/configure-mgramseva/water-calculator-service.md) (ws-calculator)
  3. ​[Water Service](/mgramseva/introducing-mgramseva/platform/configure-mgramseva/water-calculator-service.md) (ws-service)
  4. ​[eChallan](/mgramseva/introducing-mgramseva/platform/configure-mgramseva/echallans-service.md) (echallan)
  5. ​[User Events](/mgramseva/introducing-mgramseva/platform/configure-mgramseva/user-events-service.md) (user-event)
  6. ​[Vendor](/mgramseva/introducing-mgramseva/platform/configure-mgramseva/vendor-registry-service.md)​
  7. ​[IFIX Adaptor Integration Service](https://ifix.digit.org/exemplar/mgramseva/user-manual/backend-services/ifix-adapter-integration-service)​

<div align="left"><img src="https://238770250-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS0VW1NVyguqXxlketbHB%2Fuploads%2FqWk2FvJIJ8btK9FcE15A%2FeGov_MgramSeva_Architecture.png?alt=media&#x26;token=9b7d18b6-fbed-49a6-b258-da64785a7689" alt=""></div>

## mGramSeva Architecture Diagram

The sequence diagram below illustrates a typical interaction between the various services.

![Sample sequence diagram for a typical flow of DIGIT Microservices](https://238770250-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mfb8ehcimjt6ER7QOME%2F-MjIgmisnHwIZtDsYSNe%2F-MjIjnn2orGB4euQEf7C%2Fdigit_sequence_diagram.png?alt=media\&token=2d3fda64-eb5a-4281-bc77-5a64dee5a7d7)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digit.org/mgramseva/introducing-mgramseva/platform/architecture.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
