this function will send the data to consumer
it will receive data from producer and will keep the file with batch format
to endpoint API, and to run engine and app
to setting up routing
initialization, to run the webserver, to call app.py and engine.py, and set the location dataset
total data = 300.000 data/batch range of time receive = 0.00000000000000001
- Model 1: 300.000 first data.
- Model 2: 300.000 second data.
- Model 3: 300.000 third data.
run localhost (0.0.0.0) with some port
- run zookeeper with this syntax zkserver
2.make topic in kafka with this syntax
kafka-topics.bat — create — zookeeper localhost:2181 — replication-factor 1 — partitions 1 — topic home-kitchen
3.run producer.py in spyder
4.run consumer.py spyder
5.after that consumer will receive data
6.run server.py for training data and access API
1.give recommendation product according to the user
http://localhost:/<model_id>/<user_id>/ratings/top/<count_num>
2.
show the most recommended users by product
http://localhost:/int:model/products/int:product_id/recommend/int:count
3.showing the user rating a particular product
http://localhost:/int:model/int:user_id/ratings/int:product_id