Skip to the main content.
Downloads Try Thriftly
Downloads Try Thriftly
Group 762

Migrate and run DataFlex applications with Oracle, MS SQL Server, PostgreSQL, MySQL &  MariaDB.

flex2Crystal

Stuck in Crystal XI?  Upgrade and use the latest versions of Crystal Reports with DataFlex applications. 

BTR2SQL

Convert from Btrieve / P.SQL / Actian transactional engines to Oracle, MS SQL Server, and PostgreSQL

thriftly-1

Quickly build multi-protocol web services with the same API. Supports JSON-RPC, REST, SOAP,  Thrift, and gRPC.

 Group 671-1

 

Why Mertech?

2 min read

What is a web API (and why should you care)?

What is a web API (and why should you care)?

We live in a connected world where hardware and software “talk” to each other over the Internet, creating the Internet of Things (IoT). The IoT is built on two key technologies: cloud computing and web APIs. While you’re likely familiar with the cloud (as well as the many service providers promising to take you there), you might be less familiar with the concept of web APIs.

Here, we’ll give you our take on web APIs and why they’re essential, including discussing their inherent benefits and challenges.

APIs have existed since the earliest days of computing and are at the heart of almost every business application. At their core, APIs are facilitators. By providing communication standards, they make it easy for one program to request another external program's action (or function).

Pre-Internet, APIs facilitated only local conversations. Programs within the same network could easily share essential data and functions using APIs, but talking to applications outside your network was difficult.

Now, applications can call “web” APIs over the Internet, allowing distributed program-to-program conversations. Programs running anywhere in the world, on desktops, web browsers, and mobile devices, can all speak to each other thanks to the facilitative power of web APIs, creating the new, connected world that we call the Internet of Things.

The Benefits of Web APIs

At a high level, web APIs function exactly like “normal” APIs, simply facilitating conversations between two programs. They take requests from one program and send back responses from another. It just so happens that these request-response conversations take place over the Internet (i.e., use Internet-based transport methods), providing both incredible advantages and unique challenges.

You reap the benefits of these web-based conversations each time you use your iPhone to ask Google Maps for directions or whenever you deposit a check through your bank’s mobile app. Most Internet-based actions are powered by a web API that takes your request, sends it to the program you want to talk to, and triggers the necessary action.

This new world has proven helpful for individual consumers, but it’s even more beneficial for businesses. Before web APIs’ existence, businesses had to provide physical access to data or business logic they wanted to share with consumers or other businesses. This hurdle often made it difficult for businesses to reach potential customers or collaborate with other vendors.

Now, this access and collaboration is just a web API away. If an organization wants to share information across the Internet, creating a web API is the best way.

The Challenges of Web APIs

So we made web APIs sound simple, right? Not so fast. There are a couple of key underlying assumptions that we glossed over when explaining web API’s benefits above.

The Internet isn’t a magical place where all programs can immediately talk to each other because web APIs exist. Each web API uses a protocol to standardize communication between disparate programs and functions. Protocols define how an API receives a program’s request and outputs a response, eliminating any “language barrier” between programs and functions written in different programming languages.

The problem is that just as there are many different programming languages, there are also as many protocols! One organization’s APIs might be structured to transmit information using JSON-RPC or SOAP, while others use REST or XML. This isn't a problem if you want to access only one API. But it becomes problematic if, for example, you want to refine data using multiple APIs, which is a key benefit of sharing information over the Internet.

At the same time, many organizations that existed before the prevalence of web APIs are still figuring out how to connect to the Internet of Things and what to share over that connection. Particularly sensitive information or functions might not be appropriate to release to the web, and developers or organizations still working within a closed-system world can sometimes struggle to go local to global access.

Conclusion

There are solutions to both problems laid out above, as evidenced by the increasing prevalence of the Internet of Things. But several other considerations go into successfully understanding (as well as creating and deploying) web APIs. You can find a discussion of some of those considerations in this blog.

 

Learn how to transform your Windows Desktop Applications to
Hybrid Cloud Applications with Thriftly.io

New call-to-action

Legacy Application Modernization: Key Steps, Benefits & Best Practices

Legacy Application Modernization: Key Steps, Benefits & Best Practices

This blog post was co-authored with Riaz Merchant, President and CEO at Mertech. In the fast-paced software world, 'legacy' often signals a warning.

Read More
Hybrid Cloud Migration: Plan, Process and Advantages

Hybrid Cloud Migration: Plan, Process and Advantages

This post was co-authored with Riaz Merchant, President/CEO at Mertech Data Systems, Inc.

Read More
Financial Benefits of Cloud Migration & Hybrid Cloud Applications

Financial Benefits of Cloud Migration & Hybrid Cloud Applications

Shifting from your traditional legacy systems to the Cloud can be a game changer, as the benefits of cloud migration are numerous. Cloud computing...

Read More