# \[AIAB-04] Optimize a Java-based Kubernetes application (Online Boutique)

This guide will walk you through the steps of optimizing an application running on a Kubernetes cluster using Akamas.

You will optimize [Online Boutique](https://github.com/GoogleCloudPlatform/microservices-demo), a cloud-native microservices application implemented by Google as a demo application for Kubernetes. It is a web-based sample, yet a fully-fledged, e-commerce application.

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

#### What you will learn

* How to integrate your Kubernetes Cluster with Akamas
* How to model the Online Boutique application inside Akamas
* How to configure Prometheus to let Akamas collect Kubernetes performance metrics
* How to optimize a Kubernetes application using Akamas

#### What you will need <a href="#user-content-what-you-will-need" id="user-content-what-you-will-need"></a>

* Basic understanding of the concepts - you may want to watch a quick (2m) video included in this Welcome to Akamas guide and get yourself familiar with Akamas' key concepts by reading the Learn Akamas key concepts guide.
* An Akamas installation with a valid license - you may want to read the Akamas in-a-box guide to set up your Akamas instance.
* A working Kubernetes cluster - if you do not have such a cluster available, you can easily create a local one following the next sections of this guide.

You can find all the configuration files used in this guide on Akamas' [public GitHub repository](https://github.com/akamaslabs/kubernetes-online-boutique).

Please clone the repository in the home directory of the Akamas instance by running the command

```bash
git clone https://github.com/akamaslabs/kubernetes-online-boutique.git
```


---

# 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.akamas.io/quick-guides/quick-guides-akamas-in-a-box/aiab-04-optimize-a-java-based-kubernetes-application-online-boutique.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.
