# Install

{% hint style="success" %}
Found an issue? Feed it back to us at [Github](https://github.com/orgs/lensesio/discussions), on [Slack](https://www.launchpass.com/lensesio), [Ask Marios](https://ask.lenses.io/) or [email](mailto:info@lenses.io).
{% endhint %}

## Deployment Recommendation

For optimal performance, minimal latency, and the highest degree of operational reliability, it is imperative that K2K replicator instances are deployed within the same infrastructure as the **target** Kafka-compatible API solution.

This co-location strategy is not merely a suggestion; it's a fundamental best practice that directly addresses the architectural and performance characteristics of Kafka:

* **Mitigating Producer Latency:** Kafka producer operations (which K2K heavily relies on for writing to the target) are extremely sensitive to network latency. Placing K2K instances geographically close to the target cluster drastically reduces network round-trip times for these critical writes.
* **Preventing Timeouts and Retries:** Shorter network paths directly translate to a lower probability of `TimeoutException` errors and subsequent retries, which can otherwise introduce significant delays and resource overhead.
* **Maximizing Throughput & Stability:** Reduced latency and fewer retries collectively lead to significantly improved overall replication throughput and enhanced system stability, ensuring data flows smoothly and consistently.
* **Enabling Robust Delivery Guarantees:** Proximity to the target cluster inherently strengthens K2K's ability to maintain and enforce robust delivery guarantees, including the vital exactly-once semantics, by ensuring timely and reliable communication for state management.


---

# 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.lenses.io/latest/k2k/install.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.
