# Architecture

- [Basics](https://cherrycake.tin.cat/version-0.x/architecture/basics.md)
- [Modules](https://cherrycake.tin.cat/version-0.x/architecture/modules.md): Modules pack process-specific functionality in isolated classes with auto-loading, dependency and configuration capabilities, so it's easier to keep your app structure clean and clear.
- [Classes](https://cherrycake.tin.cat/version-0.x/architecture/classes.md): Classes encapsulate the object-specific structure and logic of entities in Cherrycake and in your application.
- [Lifecycle](https://cherrycake.tin.cat/version-0.x/architecture/lifecycle.md): Understanding the lifecycle of a request in Cherrycake will give you valuable insight on how it works.
- [Deep lifecycle](https://cherrycake.tin.cat/version-0.x/architecture/lifecycle/deep-lifecycle.md): Let's take a deep dive on a typical request lifecycle.
- [Performance](https://cherrycake.tin.cat/version-0.x/architecture/performance.md): Cherrycake is capable of handling a high number of requests per second in a reasonable server setup, let's take a look at the most important performance features and tools it provides.
- [Security](https://cherrycake.tin.cat/version-0.x/architecture/security.md): Cherrycake structure has been modeled from the ground up with security in mind. Let's explore its most important security features.
- [Patterns](https://cherrycake.tin.cat/version-0.x/architecture/patterns.md): Cherrycake provides a patterns parser that uses PHP code to integrate your code seamlessly with your template files, providing advanced Cherrycake capabilities to your template structures.
- [Files structure](https://cherrycake.tin.cat/version-0.x/architecture/patterns/app-files-structure.md): Let's take a look at how are directories organized in a typical Cherrycake App setup, and the file naming conventions.
- [Items](https://cherrycake.tin.cat/version-0.x/architecture/items.md): Cherrycake provides you with an optimized way of interacting with the primordial objects of your app.
- [Server requirements](https://cherrycake.tin.cat/version-0.x/architecture/server-requirements.md)


---

# 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://cherrycake.tin.cat/version-0.x/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.
