# 2. Real World Exercise

Real World Exercise

**Real-World Exercise:**

Before jumping to the next section for the solution, here are some pointers for some exercises:

**Twitter Producer**

*The Twitter Producer gets data from Twitter based on some keywords and put them in a Kafka topic of your choice*

* Twitter Java Client: <https://github.com/twitter/hbc>
* Twitter API Credentials: <https://developer.twitter.com/>

**ElasticSearch Consumer**

*The ElasticSearch Consumer gets data from your twitter topic and inserts it into ElasticSearch*

* ElasticSearch Java Client: <https://www.elastic.co/guide/en/elasticsearch/client/java-rest/6.4/java-rest-high.html>
* ElasticSearch setup:
  * <https://www.elastic.co/guide/en/elasticsearch/reference/current/setup.html>
  * OR <https://bonsai.io/>


---

# 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://architectures.gitbook.io/project/apahce-kafka/learn-apache-kafka-for-beginners-v2/kafka-real-world-project/2.-real-world-exercise.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.
