> For the complete documentation index, see [llms.txt](https://docs.ecotone.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ecotone.tech/messaging/multi-tenancy-support/different-scenarios.md).

# Different Scenarios

Once tenant resolution is configured, real systems run into a wider set of needs: tenants on different databases, tenants derived from inbound payloads, propagating tenant context across asynchronous events, isolating dead letters per tenant, and running Console Commands for a chosen tenant. The pages below cover each scenario.

{% content-ref url="/pages/yuBkGcJJEL3mGpjbDuox" %}
[Hooking into Tenant Switch](/messaging/multi-tenancy-support/different-scenarios/hooking-into-tenant-switch.md)
{% endcontent-ref %}

{% content-ref url="/pages/nVN0UOphamdA8GFeansh" %}
[Shared and Multi Database Tenants](/messaging/multi-tenancy-support/different-scenarios/shared-and-multi-database-tenants.md)
{% endcontent-ref %}

{% content-ref url="/pages/Kh0UWhcF9UnoShQAqQh2" %}
[Accessing Current Tenant in Message Handler](/messaging/multi-tenancy-support/different-scenarios/accessing-current-tenant-in-message-handler.md)
{% endcontent-ref %}

{% content-ref url="/pages/5qFpa6lNY4F8KFczwVIM" %}
[Deriving Tenant from Inbound Messages](/messaging/multi-tenancy-support/different-scenarios/deriving-tenant-from-inbound-messages.md)
{% endcontent-ref %}

{% content-ref url="/pages/dLMmOnbPLQOvo3WXn22s" %}
[Events and Tenant Propagation](/messaging/multi-tenancy-support/different-scenarios/events-and-tenant-propagation.md)
{% endcontent-ref %}

{% content-ref url="/pages/qC5JeODUhloC7pnFlqjf" %}
[Multi-Tenant aware Dead Letter](/messaging/multi-tenancy-support/different-scenarios/multi-tenant-aware-dead-letter.md)
{% endcontent-ref %}

{% content-ref url="/pages/WmLddgZm7fTs3WXMdBei" %}
[Tenant-Aware Console Commands](/messaging/multi-tenancy-support/different-scenarios/tenant-aware-console-commands.md)
{% endcontent-ref %}


---

# 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://docs.ecotone.tech/messaging/multi-tenancy-support/different-scenarios.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.
