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
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

The software you build is only as secure as the code that powers it. Learn how malicious code creeps into your software supply chain.

Apache Cassandra combines the benefits of major NoSQL databases to support data management needs not covered by traditional RDBMS vendors.

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Related

  • REST APIs Test Pyramid
  • HTTP API: Key Skills for Smooth Integration and Operation, Part 2
  • MuleSoft Integrate With ServiceNow
  • Revolutionizing Customer Engagement: Unleashing the Magic of Communication APIs

Trending

  • Cloud Cost Optimization for ML Workloads With NVIDIA DCGM
  • How AI Is Changing the Way Developers Write Code
  • How Large Tech Companies Architect Resilient Systems for Millions of Users
  • Metrics at a Glance for Production Clusters
  1. DZone
  2. Software Design and Architecture
  3. Integration
  4. REST or SMPP for SMS API Integration?

REST or SMPP for SMS API Integration?

Trying to decide between REST and SMPP for SMS API integration? Learn what REST is, principles of REST, and how it's used for SMS.

By 
Daniel Reed user avatar
Daniel Reed
·
Dec. 20, 15 · Analysis
Likes (4)
Comment
Save
Tweet
Share
14.0K Views

Join the DZone community and get the full member experience.

Join For Free

An SMS API can be connected via REST or SMPP. SMPP is a more specific protocol to SMS, popular for high throughputs but also possibly taking heavier load in platform resources. REST on the other hand, is more generic and great for triggering real-time and on-demand services. We take a deeper look into each of these protocols and their claim to fame for SMS.

What is REST?

REST refers to Representational State Transfer. It is a software architecture style for designing networked applications, using the HTTP protocol for CRUD (Create/Read/Update/Delete) operations. It is however not a standard.REST protocol characteristics for handling CRUD actions include Client-Server, Stateless, Cacheable, Layered.

REST Principles

The adoption of REST has been largely due to it’s contributions to an API’s cleaner “UI” or library, with the use of RESTful URLs and actions. These RESTful principles are based on Roy Fielding’s dissertation on network based software architectures.

How is REST Used for SMS API?

An overall RESTful API definitely makes things easier for devs by taking away the hassle of synced interconnections with SMS providers. With REST, a simple network connection, handling for Response objects and XML Parsing functionality is required.

HTTP Methods

By using basic HTTP method verbs to specific resource URIs (uniform resource identifier) using request and response headers, interactions with a REST API mirrors the basic principles that the Internet is built on. APIs are usually developed using the following REST style operations.

[GET] — Fetch / Query

[POST] — Create / New / Start

[PUT] — ‘Full’ Update / Alter / Modify

[PATCH] — ‘Partially’ Update / Alter / Modify

[DELETE] — Remove / Stop / Cancel

Devs can use any web development language to access the API, given that REST is lightweight and built on simple and established standards, with no need for additional toolkits.

What is SMPP?

Not to be confused with XMPP, SMPP refers to Short Message Peer to Peer. It is an open, industry standard protocol designed to provide a flexible data communications interface for the transfer of short message data between External Short Message Entities (ESME), Routing Entities (RE) and Message Centres, using a standard internet connection. It is occasionally called the “true SMS” protocol with direct access to network providers, using a level-7 TCP/IP protocol. The most current version is 5.0.

How is REST Used for SMS API?

In order to make use of the SMPP Protocol, a SMPP session must be established between the ESME and Message Centre or SMPP Routing Entity where appropriate. This session is created using a SMPP client that communicates with an SMPP protocol. There is a continuous exchange of SMPP PDU (Protocol Data Units or Packets) to ensure a proper bind/connection is established. The SMPP client takes care of SMS and delivers them to the server. The SMPP server also transmits a delivery report back to the client when there is a change of status for an SMS.

docs.nimta.comsmppv50.pdf 2015-05-27 13-53-56

Takeaway

Both are protocols suitable for SMS, with a vast variety of features from 2-way SMS, Mobile Originated SMS, Long & Short Codes, 2FA and Verification in use cases. It is however clear as day — REST is simpler, more scalable and easier for developers with its quick and open implementation. Other key factors to look out for are an SMS API provider with an extensive global coverage of SMS termination and the quality of direct connections to carriers in the market critical to you.

Overall Comparison - REST and SMPP

TechnologyRESTSMPP
DefinitionRepresentational State TransferShort Message Peer-To-Peer
ProtocolHTTP / HTTPSLevel-7 TCP/IP protocol, X.25
Developed/Maintained byW3C Technical Architecture Group, Roy FieldingAldiscon, The SMS Forum, Acision
Created20001999
AdvantagesSimple, Scalable, Real Time, Low LoadHigh Throughput, Instant Delivery
ChallengesEnsure SSL and HTTPSHeavier Load, More Complex, Not as scalable
REST Web Protocols SMS API Integration

Opinions expressed by DZone contributors are their own.

Related

  • REST APIs Test Pyramid
  • HTTP API: Key Skills for Smooth Integration and Operation, Part 2
  • MuleSoft Integrate With ServiceNow
  • Revolutionizing Customer Engagement: Unleashing the Magic of Communication APIs

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

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 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!