# Alternatives to use before using cache

* Caching can be hard use and maintain
* Try using other methods (see section ...)
* Examples to increase performance/lower latency
  * Reduce number of proxy
  * Choose more performant serializing and deserializing payload (ie protocol buffers)
  * Use http/2, have multiple requests on the same tcp connection (reactive servers like netty)
  * For client, use same tcp connection to send requests (similar to object pooling)
  * Avoid large payloads, large queries (no select \*), use pagination, if filtering/ordering do it in the db, indexes in db
  * Reduce client side processings


---

# 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://hanfak.gitbook.io/workspace/cache/alternative-before-ussing-cache.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.
