# Cloud Architecture

**Cloud Architecture** is an alternative deployment model for hosting ONEWEB applications on a **cloud provider**.\
This architecture is designed to provide flexibility, scalability, and operational efficiency by leveraging cloud infrastructure instead of on‑premises hardware.

By adopting a cloud‑based deployment, organizations can benefit from:

* Reduced server maintenance effort
* Lower hardware investment cost
* Faster provisioning and scalability

Cloud Architecture is suitable for organizations that prefer cloud‑native or hybrid operational models.

***

### Cloud Service Models

When deploying ONEWEB in a cloud environment, several cloud service models may be considered:

* **Infrastructure as a Service (IaaS)**\
  Provides virtualized infrastructure resources such as compute, storage, and networking.
* **Platform as a Service (PaaS)**\
  Provides a managed platform environment for running applications.
* **Software as a Service (SaaS)**\
  Delivers applications as fully managed services to end users.

Based on customer and business requirements, **ONEWEB can be hosted on the cloud as a PaaS or SaaS solution**.

The selected cloud service model determines the level of control, responsibility, and operational effort required.

***

### Reference Architecture Overview

The following diagram illustrates a high‑level view of a typical ONEWEB cloud deployment:

<figure><img src="https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FCvajDlzhMdvnHAGRqPuv%2F0?alt=media" alt=""><figcaption></figcaption></figure>

This diagram represents the **logical cloud architecture**, showing how ONEWEB platform components are hosted and integrated within a cloud environment.\
The diagram intentionally does not describe implementation details such as container layout or orchestration mechanisms.

***

### Relationship to Container‑Based Deployment

In cloud environments, ONEWEB is commonly deployed using a **container‑based architecture** to improve portability, scalability, and operational consistency.

While this section focuses on **why and when to use Cloud Architecture**, the detailed structure of containerized deployment—including individual platform components and orchestration—is explained separately in the following section:

* **Container Structure**

***

### When to Choose Cloud Architecture

Cloud Architecture is recommended when:

* Infrastructure maintenance overhead needs to be minimized
* Applications require flexible scaling and rapid provisioning
* Cloud services are preferred over on‑premises deployments
* ONEWEB is delivered to customers as a managed platform or service

Compared to Standalone and High Availability architectures, Cloud Architecture provides greater flexibility and aligns well with modern cloud‑native deployment strategies.


---

# 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://docs.onewebstack.com/oneweb-platform-th/getting-started/installation-guide/plan-your-oneweb-installation/design-oneweb-architecture/cloud-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.
