Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshuanathaniel/kafka-playground
The playground is a quick demo of event driven microservices using Kafka by way of docker-compose.
https://github.com/joshuanathaniel/kafka-playground
Last synced: 8 days ago
JSON representation
The playground is a quick demo of event driven microservices using Kafka by way of docker-compose.
- Host: GitHub
- URL: https://github.com/joshuanathaniel/kafka-playground
- Owner: joshuaNathaniel
- Created: 2022-03-12T22:35:37.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-30T03:29:01.000Z (6 months ago)
- Last Synced: 2024-10-12T13:24:05.742Z (24 days ago)
- Language: JavaScript
- Size: 149 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kafka Playground
## About
The playground is a quick demo of event driven microservices using Kafka by way of docker-compose.## Getting Started
```shell
# Start docker containers
yarn docker:start
# Send an order
curl -X POST -H "Content-Type: application/json" localhost:3000/order -d "{
\"quantity\": 1,
\"productId\": 12345,
\"customerName\": \"Foo Bar\",
\"customerAddress\": \"123 Main St, Anytown, CA 12345\"
}"
# Some json should be returned with the orderId
curl localhost:3001/invoice/:orderId
# Check the order shipped status is now true
curl localhost:3000/order/:id
```## Development
```shell
# Install node version manager from https://github.com/nvm-sh/nvm#installing-and-updating
nvm install
yarn install# See root package.json for docker scripts to easily run the needed containers
```## Credit
- [Building Event-Driven Microservices](https://learning.oreilly.com/library/view/building-event-driven-microservices/9781492057888/)
- [Confluent](https://www.confluent.io/)