Skip to content
Michael Harrison edited this page Aug 12, 2021 · 1 revision

We use the Salesforce streaming API to receive real-time updates from Salesforce when a contact changes, so we can display faculty status and update their contact ID instantly.

The streaming functionality consists of a rake task, which needs to be run as a daemon, the Salesforce subscriber, and a contact parser, which gets information from salesforce and inputs it to the user record.

Only Id, Name, and Faculty Status are being monitored for changes. More items can be added to the query to monitor more fields for changes. Then be sure to update the contact sanitizer to pull the fields in.

To start the stream watcher, run rake streaming:contact_stream.