Question
Uniqa
AT
Last activity: 24 Feb 2024 4:55 EST
Pega NBA for end customer design
Hi. We have a requirement that when the sales agent logs in to his Pega CRM application, he should see the list of customers tagged to him and the top NBA available for each customer. We have almost 3000 sales agent and on an average there can be 500 customers tagged to each sales agent .
How to acheive this in a performance efficient way ? ondemand NBA vs Overnight batch
Approach 1: When sales agent logs in , Pega CRM makes API call to Pega CDH application and pass agent ID. Pega CDH takes all the customers belongs to the sales agent (Data available in CDH database already) and then run the data flow for all the customers individually . Data flow executes the NBA stratergy for each customers and finally returns the result back to CRM ?
Approach 2: Run a batch job for all the three thousand agents and customers under them overnight and have the NBA results ready in CDH data base. when Sales agent logs in to the CRM application, They make API call to CDH and then CDH just respond back with the results which is already available in CDH database . But the downside of this approach is not every sales agent logs in to CRM every day or they may not be interested in NBA for a particular Day.
Is there any other better way to do this ?