> For the complete documentation index, see [llms.txt](https://sunbird.gitbook.io/sunbird-spark/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sunbird.gitbook.io/sunbird-spark/learn/tech-overview/building-blocks.md). Agents can also search and read this documentation through its [MCP server](https://sunbird.gitbook.io/sunbird-spark/~gitbook/mcp).

# Building blocks

Spark is composed of six building blocks — independently deployable units that each handle a specific domain of functionality. Understanding the building block boundaries helps architects decide what

{% tabs %}
{% tab title="SB Knowlg" %}
The content and knowledge management building block.

**Responsibilities:**

* Content lifecycle management — create, review, publish, retire
* Collection management — courses, playlists, textbooks, and their hierarchies
* Taxonomy and framework management — configurable category trees for any domain
* Content search and discovery — OpenSearch-powered
* Media management — cloud storage integration for content assets
* Question bank — assessment content (inQuiry APIs are merged into knowlg-service in Spark)

**Primary data stores:** Janus Graph(content graph), YugabyteDB (transactional data), OpenSearch (search index), Redis (API response cache)

**Deployed as:** knowlg-service (single merged service in Spark)
{% endtab %}

{% tab title="SB Lern" %}
The user, organisation, and learning management building block.

**Responsibilities:**

* User registration, authentication (via Keycloak), and profile management
* Organisation and multi-tenancy (channel) management
* Course batch creation and management
* Learner enrolment and progress tracking
* Certificate issuance (via Sunbird RC integration)
* Notifications (in-app and push)
* Groups and cohort management (when Groups add-on is enabled)

**Primary data stores:** YugabyteDB

**Deployed as:** lern-service (single merged service in Spark)
{% endtab %}

{% tab title="SB inQuiry" %}
The question bank building block.

**Responsibilities:**

* Question and question set creation (QuML spec)
* Question bank API — search, read, update questions
* Assessment serving and result capture

{% hint style="info" %}
**In Spark:** inQuiry APIs are merged into knowlg-service. The QuestionSet Player and QuestionSet Editor remain as independent V2 web components.
{% endhint %}

**Note:** The legacy (non-QuML) assessment approach has been retired in Spark. Only QuML-spec questions are supported.
{% endtab %}

{% tab title="SB Obsrv(add-on)" %}
The data and analytics building block.

**Responsibilities:**

* Telemetry event ingestion, deduplication, validation, and enrichment (Flink)
* OLAP storage and querying (Druid)
* Batch summarisation — session summaries, course completion aggregates (Apache Spark)
* Custom dashboards and report generation (Superset)

{% hint style="info" %}
**In Spark:** Obsrv is an optional add-on, disabled by default. The telemetry service (event ingestion endpoint) is retained in the default install. Kafka topic backup is retained, so historical data is preserved even before Obsrv is enabled.
{% endhint %}
{% endtab %}

{% tab title="SB RC" %}
The credential and registry building block.

**Responsibilities:**

* Verifiable certificate generation and storage
* Public certificate verification endpoint
* Registry operations for organisations and individuals

{% hint style="info" %}
**In Spark:** RC v1 is used as-is. RC v2 (W3C Verifiable Credentials standard) is planned for the April–June 2026 release.
{% endhint %}
{% endtab %}
{% endtabs %}


---

# 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://sunbird.gitbook.io/sunbird-spark/learn/tech-overview/building-blocks.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.
