Do Streaming Segments update by batch uploads | Community
Skip to main content
April 13, 2024
Solved

Do Streaming Segments update by batch uploads

  • April 13, 2024
  • 2 replies
  • 2913 views

Hi there,

 

I have couple streaming segments, and there are two data sources, one is a batch data source that comes in after the global segment evaluation time (say 7am).

 

1) Will these streaming segments' population update after 7am a) if ingestion is a batch source (through batch ingestion api), b) Will this still trigger an AJO journey that starts with Audience Qualification?

 

2) If the above is no, does this mean I need to convert the ingestion method via streaming api in order to update the segments in real-time, and kick off the Audience Qualifications event in AJO?

 

Thanks.

Best answer by Kumar29917170hcyp

Hi @kumar29917170hcyp,

 

Thanks for the response, is it possible for you outline what are the steps & APIS to call to trigger that manual segment evaluation? I understand we need to create a Segment Job Request, but I believe that alone doesn't really activate the new audience population to be used for AJO or destination activation. 

 

2nd, unfortunately as our situation is complex and so no single time would be the most suited evaluation time, what would work best is multiple batch evaluation time throughout the day, but what else is possible?

 

Thanks.

 

 


Hi @akwankl,

 

A segment job is an asynchronous process that creates an audience segment on demand. Documentation to crate an ad-hoc audience evaluation: 

https://experienceleague.adobe.com/en/docs/experience-platform/segmentation/api/segment-jobs#create

 

Next:

Activate audiences on-demand to batch destinations via the ad-hoc activation API:
https://experienceleague.adobe.com/en/docs/experience-platform/segmentation/api/segment-jobs#create

 

Note: There are guardrails around the no. of time you execute these jobs.

Hope this helps.

 

Regards,

Kumar Saurabh

2 replies

April 14, 2024

Hi @akwankl ,

 

You need to know the Segment evaluation process.

The Streaming evaluation happens only if the source data is Streaming. Even though you have ingested data through batch, the evaluation of segments happen on during the global segment evaluation time. 

 

Also, in your case the Daily Segment evaluation job is happening before your batch data is ingested. I would recommend, talk to the Adobe support team and request them to change the daily evaluation time to a suitable time so that you have received all the data required for your Segment evaluation. The AJO Journey will be triggered for all the qualified profiles once the Global Segment evaluation is done. 

 

Hope this helps.

 

Regards,

Vinod

Adobe Employee
April 15, 2024

Hi @akwankl,

As @vinodkomiri correctly pointed out about the Segment evaluation mechanism, there is still a possibility your segment gets evaluated as streaming.

Go through the below link that outlines the criteria for the segments to be evaluated as streaming:

 

https://experienceleague.adobe.com/en/docs/experience-platform/segmentation/ui/streaming-segmentation

 

Regards,

Kumar Saurabh

akwanklAuthor
April 15, 2024

Thanks for the response. 

 

The issue is that this data source does not update before the global segment evaluation time, so we cannot adjust the global segment evaluation time for this data source alone.

 

Is there a way to update segment in real-time/on demand then once a batch comes in? For example, our marketing team might have a list of customers (csv, batch upload or through batch api) they want to upload and target on the same day, we can't tell them to wait 24 hours in order to launch the campaign. What can we do?

Adobe Employee
April 15, 2024

hi @akwankl,

You can update the Segment Job evaluation time (global) using Schedule Job API Endpoint.

Schedules are a tool that can be used to automatically run batch segmentation jobs once a day. You can use the /config/schedules endpoint to retrieve a list of schedules, create a new schedule, retrieve details of a specific schedule, update a specific schedule, or delete a specific schedule.

 

https://experienceleague.adobe.com/en/docs/experience-platform/segmentation/api/schedules#update-schedule

 

Regards,

Kumar Saurabh