> For the complete documentation index, see [llms.txt](https://lern.sunbird.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lern.sunbird.org/use/developer-guide/ml-service/data-pipeline-flink-jobs/ml-user-delete/component-diagram.md).

# Component Diagram

<figure><img src="https://308610995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4ZKyfmmhMWpPkD6iYvKF%2Fuploads%2FfNCkL6bHNqUVfTvjYc1p%2FScreenshot%202023-12-15%20at%205.09.19%E2%80%AFPM.png?alt=media&amp;token=8ed99ac9-9f22-4941-9ed2-b2d5540440bb" alt=""><figcaption></figcaption></figure>

The Ml User Delete service is constructed upon the framework of Flink, Kafka and Mongo, a powerful approach for updating and managing data in a scalable and real-time manner.

1. **Apache Kafka** is a distributed event streaming platform that is designed for handling high volumes of real-time data. In this service, Kafka generates user data (userId, organisationId) as a JSON event when a user chooses to remove their account from the Sunbird platform.
2. **Apache Flink** is a stream processing framework that provides high-throughput, low-latency, and exactly-once processing of streaming data. Flink uses the Kafka event and establishes a connection with the Mongo database to update documents from various collections.
3. **Mongo Database** is a distributed NoSQL database that is designed to handle massive amounts of data across many commodity servers, ensuring high availability and fault tolerance. User data containing user personally identifiable information will be updated.

**Configuration variables:**

<table><thead><tr><th width="246">Variable</th><th>Default Value</th><th>Purpose</th></tr></thead><tbody><tr><td>kafka.input.topic</td><td>{{env}}.delete.user</td><td>Kafka topic from which messages/events are read to be processed.</td></tr><tr><td>kafka.groupId</td><td>{{env}}ml-user-delete-group</td><td>Kafka input topic group Id</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://lern.sunbird.org/use/developer-guide/ml-service/data-pipeline-flink-jobs/ml-user-delete/component-diagram.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
