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

  • Keep Your Application Secrets Secret
  • A Deep Dive Into Distributed Tracing
  • Building REST API Backend Easily With Ballerina Language
  • Understanding the Fan-Out/Fan-In API Integration Pattern

Trending

  • Closing the Drift Loop: An AI Agent That Drafts Terraform Fixes
  • The Permission Was Valid. The Action Was Not Authorized.
  • Why Kotlin or Java Is the Wrong Question For Enterprises
  • The Window Closes: Why I Switched to Kotlin Before the Codebase Got Too Big

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. An Intro to Realtime APIs Using Pushpin

An Intro to Realtime APIs Using Pushpin

In this article, we briefly introduce Pushpin, a proxy server for creating Realtime APIs and push notifications, and explain how to use it with your web app.

By 
Jeffrey Lee
·
Sep. 01, 17 · Opinion
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
8.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

Realtime APIs are at the center stage of web and app development because more and more users expect realtime experiences. The traditional transactional request and response APIs may work if you don’t need up-to-the-minute data, but if you broadcast live triathlon results, you know your users want realtime updates to the scoreboards (an actual application by the way). 

There are many popular realtime services that developers can use like Pushpin, Pusher, and Streamdata.io. If you’re truly interested, the ProgrammableWeb offers a large API Directory with more examples of realtime APIs and others.

This article introduces you to realtime APIs with Pushpin, a drop-in reverse proxy server that pins clients’ connections open, making realtime push easy. Here is an example of how Pushpin fits into an application structure:

Image title

Pushpin Pushes Data

Pushpin, a reverse proxy and open-sourced version of Fanout, is dropped between the backend web server and client. It then communicates with the backend using short-lived HTTP requests. After the backend gives a confirmation to push the data, Pushpin’s private control API will push the data by making an HTTP Post request. Pushpin will then send this data to the clients’ connections as necessary.

Pushpin is also a unique realtime push solution because it addresses API creators’ needs:

Image title

Pushpin With API Management

Pushpins’ architecture allows it to be easily integrated into a team’s current API management system. Many API management systems function as a proxy server already, a developer would just need to connect the proxies together. Pushpin is also placed in front of the API management system so that the system doesn’t undergo long-lived connections. And since Pushpin can translate WebSocket protocol to HTTP, the API management system can operate on the translated data easily.

All in all

An open source API like Pushpin promotes collaboration and innovation by allowing developers to experiment with new integrations. In the coming weeks, I’ll explain more uses of realtime APIs using Pushpin and other API tools. Check out my profile for more.

API Management system Data (computing) Open source push Web server application Requests dev

Published at DZone with permission of Jeffrey Lee. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Keep Your Application Secrets Secret
  • A Deep Dive Into Distributed Tracing
  • Building REST API Backend Easily With Ballerina Language
  • Understanding the Fan-Out/Fan-In API Integration Pattern

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