- NET 6
- Rider / Visual Studio / dotnet-cli
- Kafka Instance
- MongoDB
- Setup your Kafka instance
- Setup MongoDB (Create SpotifyRecord database and CurrentlyPlayingRecords collection)
- Setup 2 config.json
- Build and Run
NOTE: You may need to start playing on spotify in order to get record back.
- Consumer config
{
"MongoDB": {
"connectionString": "mongodb://localhost:27017"
},
"Kafka": {
"BootStrapServers": "PLAINTEXT://172.28.63.150:9092,PLAINTEXT://172.28.63.150:9093,PLAINTEXT://172.28.63.150:9094"
}
}
- Producer config
{
"Spotify": {
"CLIENT_ID": "<Spotify_APP_Client_ID>"
},
"Kafka": {
"BootStrapServers": "PLAINTEXT://172.28.63.150:9092,PLAINTEXT://172.28.63.150:9093,PLAINTEXT://172.28.63.150:9094"
}
}