> For the complete documentation index, see [llms.txt](https://mifos.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mifos.gitbook.io/docs/payment-hub-ee/overview/deployment-models.md).

# Deployment models

Deploying the Payment Hub can be On-premises or any of the cloud providers, depending on the client requirements and regulations in the given jurisdiction.

<figure><img src="/files/El2zLheVjH4DhkgUF1uJ" alt=""><figcaption></figcaption></figure>

The Payment Hub is designed in a fashion, where even a single deployment could become a shared service serving multiple DFSPs run by an aggregator (multiple SACCOs, credit unions on a multitenant setup).

Depending on the scale, expected throughput, fault tolerance, high availability requirements we are suggesting three different type of deployments for the Payment Hub.

* barebone - single instance of components, minimised resource usage, no loss of functionality&#x20;
* medium - single realtime engine&#x20;
* fully scaled - multiple realtime engines&#x20;

## Barebone deployment

![Barebone deployment](https://lh5.googleusercontent.com/nNo1VE5BPyr5o5CyNT-OExdrAD7vbzO_FEifnD7y-cRd9L2MGAKbK0jMQppb6flJc0vaPnVGF4Ovc_XX20ZSU8t8BDyQc1abyoB18X8GRwbUeLS8GwdBKEB_PFAJVLhcdbwttRXFEK4)

## Medium deployment

Single kubernetes cluster to contain all the necessary components&#x20;

Fault tolerance provided by the clustered components&#x20;

Stretched installation across data centers possible, but not ideal

![Medium deployment](https://lh4.googleusercontent.com/OG277n1F7I6YQv9pusN62_sRuxSExtjAIAqLtnt8lYDfYHaHI1UaWiU1qqxDLolZ6SCAo_IGuzRzD4tu6fcY_4Dz9c9NoF-CoXzGOukUVHIOZ7CFrLr24S7l9XwIxKZmyCPa3Ec6tbs)

## Full scale - large deployment

Multiple independent payment engines (a single engine is collocated for performance), enabling complete version upgrades without service interruptions&#x20;

Running in different data centers on independent network connections (high availability, fault tolerant even in case of disaster scenarios)&#x20;

Partitioning the load across the engines

![Fully scaled version for large environments](https://lh6.googleusercontent.com/2nCgoDSZSv3QOJbuDfQDPLUA2aYYS8YhJE0iFQNSsel_WWtA0_9O248yT4Afx7t9qX7mRfNO6EPXOgBUutNmOo2yjmi2eyKkoMReF40QcK3r2Lg5gmn7Xw6gIdK_ynnbvD-pn1gug3U)

### **Sandbox Environment**&#x20;

<figure><img src="/files/PIOAFD9CXjG1urIn7w0X" alt=""><figcaption></figcaption></figure>


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://mifos.gitbook.io/docs/payment-hub-ee/overview/deployment-models.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
