> For the complete documentation index, see [llms.txt](https://aiflow-2.gitbook.io/aiflow/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aiflow-2.gitbook.io/aiflow/platform-structure/layered-architecture.md).

# Layered Architecture

## Layered Architecture

AIFlow’s layered design optimizes security, scalability, and modularity. Each layer focuses on a different aspect of the ecosystem, ensuring seamless interoperability:

1. Consensus Layer
2. Data Layer
3. Service Layer
