-
Notifications
You must be signed in to change notification settings - Fork 1
Demo
Pashalis Grivas edited this page Oct 17, 2021
·
3 revisions
For demonstration purposes, "Real-Time recommendation Service" is able to run without the existence of a real application, using two secondary programs. The first program (item_producer.py) randomly selects entries (item ids) from (news_category_dataset_sample.json) (original dataset can be found here) and publishes them on "items" topic. It can do this either once or repeatedly. Then, the second program (user_interactions_producer.py) creates some random user ids, repeatedly combines them randomly with item ids in "items" topic as interactions and publishes them on "interactions" topic.
Demos's functionality, that described previously, is shown in the following architecture diagram:
-
Repeat the following instructions included in system's Deployment Guide:
- Instruction 1: Start Apache Kafka (Step 2. only) (if its not already started).
- Instruction 3: Activate "venv" virtual environment (if created one previously and not already activated).
- Instruction 7: Run "model_builder.py" program.
- Instruction 8: Run "recommender.py" program.
-
Move to "demo" directory:
cd demo
. - Run "item_producer.py" and create some items.
-
Run "user_interactions_producer.py":
- Create some users first.
- Create interactions.