Presented at the Realm meetup on December 8, 2016, this presentation serves as an introduction to the new event handling features of the Realm Mobile Platform.
and server • It’s not possible to access user data on the server • Useful for maintaining consistent state across user devices • Not so useful for server-side processing / web services • (User devices could be used for processing/controlling events)
data on the server • Includes a special version of the Realm Node.js package • Can register callbacks for detecting when Realm data changes • Uses callbacks to respond to user-driven events • Third party services can then write data automatically
Realm read-write access • Data can be shared with other backend services (eg MySQL) • Callbacks can be registered to respond to Realm data changes • All writes made from Node.js SDK automatically sync to devices
text. • Save that photo data to Realm. • ROS receives data, forwards it to Google OCR via a JSON REST API. • Receives REST response from Google, decodes and saves results back to Realm. • Resulting scanned text is synchronized to device and displayed on screen.
text. • Save that photo data to Realm. • ROS receives data, forwards it to three Watson Image Recognition APIs • Asynchronously receives results from each API, and saves to same Realm object. • Changes to the Realm object are consolidated and sent back to app.