/ms-test--hello-twitch

🌍 MicroServices Hello World Live from Twitch!

Primary LanguageKotlin

CI

Adevinta Spain MicroServices Live!

This repo only contains the source code created on the live coding sessions, but not our platform stuff

Watch it on YouTube 👇

  1. 🌍 Hello World! with @guatebus & @rogervinas
  2. 🔎 Logs & 📈 Metrics with @miquelrossello & @rogervinas
  3. 🏗️ AWS Infrastructure with @tetexxr & @rogervinas
  4. ✉️ Kafka with @tetexxr & @rogervinas
  5. 🐙 KrakenD API Gateway and :octocat: ms-test--krakend-twitch with @fmachi & @rogervinas

Take a look at our discussions page 👀

Run

docker-compose up -d
./gradlew bootRun

Hello!

Use curl:

curl http://localhost:8000/hello

Ping-Pong!

Use kcat:

  • Produce:
echo -n '{"ping":123, "message":"hi!"}' | kcat -b localhost:9094 -P -t priv.hello.twitch.ping 
  • Consume:
kcat -b localhost:9094 -C -t priv.hello.twitch.pong 

Test

./gradlew test

Integration Test

./gradlew integrationTest