What are Web APIs and what does that mean for users?

In the era of the PC, software was still simply structured: A program stored the data locally on the PC and provided the user with an interface to access the data. With the development of the Internet and the large bandwidth at end devices (PC, smartphone, tablet, machine control, sensors), the desire to access data over a network is growing. However, what dangers this entails became clear when the first viruses appeared with the spread of the Internet.

First Evolution: Separation of application and data storage

Most applications from the 2000s have their own file formats. The files must be loaded into the RAM and are only organized there into memory structures that can be accessed quickly. This leads to the PC crashing, especially with large amounts of data. Today's software uses databases for storage instead. These build structures automatically, allowing for efficient access to the data regardless of how much it grows. With the query language SQL, there is a standardized communication line to the storage backend.

Second Evolution: Separation of business logic and interface

Clean software already contains an internal separation of business logic from the interface. However, this was an internal division within the software. If these two components are actually separated into two programs that only communicate with each other via a network line, the following situation arises:

WebAPIs

The provision of business logic over the network or the internet takes place via the HTTP protocol, which is already used by browsers. Requests and responses are sent via the HTTP protocol. To ensure the data is machine-readable, it is packed into an intermediate format: either the well-known XML or the more compact JSON.

What does this mean for users

By using a Web API, you gain more flexibility and freedom! Your core business logic is contained in a timeless program that communicates with the database. Whether MS Windows is still used in the future or everything runs on tablets - who knows? In any case, you can replace the interfaces that access the business logic at any time. If you still have old data sets, you can easily feed existing data into the system via the Web API. This is exactly how the export works. The XML and JSON formats, which are readable by all developers, potentially guarantee support from any third-party companies. Thus, you move away from an isolated solution toward a connectable software component that you can link to various other data sources.
Категории
Метки