# Architecture

## Components

**Schema Registry**

* NATS Microservice
* KV Store backed
* Multi-tenancy using Accounts
* Access Control Plane UI and API

**Pre-existing NATS system**

* Managed by Control Plane
* Access configured using Platform Components and can be disabled per account

**Schema Registry account**

* Control Plane manages an account for Schema Registry called **SynadiaPlatform**
* SynadiaPlatform account stores schemas in a Key Value store called `schemas`
* Account is exported to other accounts to enable multi-tenancy

**Control Plane**

* Controls the SynadiaPlatform account
* Configures Platform Component access for Schema Registry
* Sets up account imports and exports for account schema isolation

## Security and access control

* Only supports [decentralized authentication](https://docs.nats.io/running-a-nats-service/configuration/securing_nats/auth_intro/jwt) to enable schema isolation at the account level
* Clients must connect with user credentials for the account the schemas are stored in

## Notes

Each account's schemas are isolated from every other account's. Clients from `account_a` and `account_b` use the same subjects, e.g. `$SR.v1.LIST`, and each sees only its own account's schemas.
