8000 GitHub - MosesMendoza/taxservice: playing around with faust-streaming
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

MosesMendoza/taxservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

taxservice

Exploring python-based event streaming with faust-streaming.

Install

pip install -r requirements.txt

Run

faust -A app.main worker -l info

What it does

The apache kafka streams getting started setup creates a kafka cluster with various topics for a wordcount application, including streams-plaintext-input and streams-wordcount-output. This app just repurposes that streams-plaintext-input topic to read from. The eventual idea is that "sales" will be recorded to the topic, and this app will calculate a sales tax for each sale and produce that to a different tax topic.

Assumes that the value written to the topic looks like this:

{
  amount: < Decimal suitable for money >,
  state_abbreviation: < A standard abbreviation for a state, like WA or OR >
}

About

playing around with faust-streaming

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0