Skip to content

RECOMMENDATIONS

tejaswini829 edited this page Feb 5, 2019 · 10 revisions

RECOMMENDATIONS

The Recommendation Service uses neo4j database to recommend policies to the policy holder based on his profile.The Recommendation Service interacts with the Policy holder service to get the details of the policy holder to recommend services. The Recommendation service interacts with the Insurance Company to add new policies and companies registered to the neo4j database.

HTTP Request:

{ "user_id": integer,"policy_id":integer,"company_id":integer,"age":integer,"location":string }

HTTP Response:

{ "company_name":string,"policy_name":string,"min_age":integer,"max_age":integer,"sum-insured":integer,"premium":integer,"policy_term":integer }

Data Persistence Model

Message Bus Providing(MBP):

{ "company_name":string,"policy_name":string,"min_age":integer,"max_age":integer,"sum-insured":integer,"premium":integer,"policy_term":integer }

##Consuming Message Bus(CMB): The Recommendation Service consumes information from Policy holder Dashboard and Insurance Company Dashboard.The Policy holder Dashboard provides all the information regarding the policy holder.The Insurance Company dashboard will provide the information with respect to the new policies added.

Policy holder Dashboard's information consumed:

{ "user_id":integer,"age":integer,"disease":string,"location":string }

Insurance Company Dashboard's information consumed:

{ "company_id":integer,"policy_id":integer }

Clone this wiki locally