DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • PostgreSQL vs Oracle: When Higher Cost Means Better Performance
  • The 30 Seconds Before a Mobile App Crash: The Evidence Most Systems Never Capture
  • The Request Timed Out, But the Payment Succeeded: Building Retry-Safe Mobile APIs
  • When Mobile Connections Break: Recovering Long-Running iOS Workflows With LangGraph and Event-Driven Backends

Trending

  • DZone's Article Submission Guidelines
  • Part 4: Multi-Agent Orchestration — Pairing Goose With Quarkus Flow State Machines
  • MQTT, Kafka, NATS, or Zenoh? Choosing Edge-to-Cloud Messaging by Traffic Pattern
  • New York City Taxi Trips: Putting Neo4j and DuckDB to Work

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  1. DZone
  2. Data Engineering
  3. Databases
  4. Making PostgreSQL Real Time With Realm

Making PostgreSQL Real Time With Realm

Realm recently launched a PostgreSQL connector, enabling the power of Postgres and real-time data syncs with Realm Mobile Platform.

By 
Tom Smith
DZone Core CORE ·
Mar. 27, 17 · News
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
9.7K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

I recently had a great talk Paul Kopacki, CMO of Realm, a mobile platform that works on devices as a data store that developers may choose versus the default database (Core Data). Realm is an embedded object database that sits on the device and enables developers to write entirely in objects, rather than having to use object-relational mapping.

PostgreSQL is one of the most powerful and popular databases in use today and is increasingly used for systems of record in all types of organizations. This works well for many use cases, but things get difficult when you try to build a modern, reactive app connected to your Postgres database. Postgres is fast, but it’s just not designed for real-time, reactive mobile apps.

But Realm has just introduced a new PostgreSQL Data Connector. This new connector creates a simple two-way bridge between Postgres and the Realm Mobile Platform, effectively making Postgres real-time for mobile apps. Data flows reliably and in a fault-tolerant manner between Postgres and the Realm Platform, which then automatically handles real-time sync with your mobile apps. This means changes made on mobile clients are automatically reflected back to your Postgres database in real time, and data changes made in Postgres sync in real time with client-side databases. You can now easily make truly reactive mobile apps with PostgreSQL and Realm.

Mobile Platforms as an Alternative to REST APIs

The Realm Mobile Platform replaces traditional methods of using REST APIs to get data in and out of backend systems for use in a mobile context. Our automatic real-time sync service efficiently syncs only what has changed in the data model without the need for manual data requests or bandwidth-hogging polling. Realm automatically handles the real-time sync of your native objects—without the need for JSON—between clients and the Realm Object Server (the server-side component of the Realm Mobile Platform). The Realm Object Server can then provide the API integration point between your mobile application and PostgreSQL database to consolidate API management in the backend, where network issues are not a concern. This architecture reduces the number of API calls that each device must make and reduces the need for complex idempotent APIs that can handle unreliable network connectivity.

PostgreSQL Data Connector Demo

This video shows how you can link Postgres and Realm Mobile Platform.

Using sample data from a fictional DVD rental company, we’re able to modify inventory levels via a mobile app or within Postgres and see those changes sync in real time. It’s a simple example of how Realm can dramatically simplify making Postgres real time for your applications.


Realm connects your mobile app and Postgres with automatic real-time sync.

You can visit GitHub for the code and an in-depth overview of how to connect the Realm Mobile Platform and PostgreSQL to create reactive, real-time mobile applications with data stored in PostgreSQL.

PostgreSQL mobile app Object database

Opinions expressed by DZone contributors are their own.

Related

  • PostgreSQL vs Oracle: When Higher Cost Means Better Performance
  • The 30 Seconds Before a Mobile App Crash: The Evidence Most Systems Never Capture
  • The Request Timed Out, But the Payment Succeeded: Building Retry-Safe Mobile APIs
  • When Mobile Connections Break: Recovering Long-Running iOS Workflows With LangGraph and Event-Driven Backends

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook