Expose user profiles stored in your Redis instance over an API.
7 minute read
The Activation API is part of our Early Access Program, where we work with users and customers to test new features and get feedback before making them generally available. These features are fully functional but can change as we improve them. We recommend connecting with our team before running them in production.
Contact us if you would like access to this feature.
With RudderStack’s Activation API, you can fetch enriched user traits stored in your Redis instance and use them for near real-time personalization for your target audience.
Overview
A brief summary of how the Activation API works:
Sync all your customer 360 data from your Profiles project to your Redis store.
The Activation API sits on top of this Redis instance and provides endpoints for retrieving and using the enriched user data for personalization.
How to use the Activation API
Use your Profiles project to create a 360-degree view of the features stored in your data warehouse.
{"entity":<entity_type>,// User, project, account, etc.
"destinationId":<redis_destination_id>,// Redis destination ID
"id":{"type":<id_type>,"value":<id_value>}}
Example request
POST/v1/activationHTTP/1.1Host:profiles.rudderstack.comContent-Type:application/jsonAuthorization:Bearer <personal_access_token>Content-Length:90{"entity":<entity_type>,"destinationId":<redis_destination_id>,// Redis destination ID
"id":{"type":<id_type>,"value":<id_value>}}
You can use the Activation API for real-time personalization. Once you fetch the user traits from your Redis instance via the API, you can pull them into your client application to alter the application behavior in real-time based on user interactions.
You can respond immediately with triggered, user-focused messaging based on actions like page views or app clicks and provide a better customer experience.
Redis configuration
This section describes the settings required to set up a Reverse ETL connection from your warehouse (containing the project’s output table) to the Redis destination in RudderStack.
Address: Enter the public endpoint of your Redis database. If you are using Redis Cloud, you can find this endpoint by going to your Redis database and navigating to Configuration tab > General.
Password: Enter the database password. You can find the password in the Security section of the Configuration tab:
Database: Enter the database name.
Cluster Mode: Disable this setting if you haven’t set up Redis in a cluster.
Data mapping
RudderStack creates multiple Reverse ETL sources automatically based on your Profiles project. You will see separate sources for different id_served connected to the same Redis destination.
The following pb_project.yaml snippet shows the sources to be created. RudderStack syncs the customer 360 features to different tables in Redis indexed by id_served.
If I force a full resync, stop it, and then start a new sync, does RudderStack always perform a full sync the next time?
It depends on the state of the task when it was canceled.
If the sync is cancelled while RudderStack is preparing a snapshot, then next run depends on the state of the previous successful run and any mapping changes.
If it is cancelled after the sync data is prepared, the next run is incremental.
Generally if a sync is cancelled manually, it is recommended to trigger a full sync if the previous cancelled task was a full sync. If the previously cancelled sync was incremental, triggering an incremental sync is recommended.
Does RudderStack perform a full sync if I add a new column?
RudderStack does not change the sync mode if you make any column additions. It triggers a full sync only if you change/update the data mappings, for example, if the newly added column is sent to the destination via the Visual Data Mapper.
For Profiles activation syncs, RudderStack updates the mappings and automatically sends all columns from the customer 360 view by triggering a full sync.
Suppose I’m running a full sync and the Profiles job is running in parallel and finishes eventually. What happens to the scheduled sync? Does it get queued?
RudderStack first creates a temporary snapshot copy of any sync when it starts. So its syncing the created copy. Even if a Profiles job is running in parallel, the sync - if started - is not impacted by it.
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.