Jan 17, 2019
102 Views
1 0

What is an API, Exactly?

Written by

This is the first part of our series What Are APIs and How Do They Work?. If you missed the introduction to this series — APIs Are Like User Interfaces–Just With Different Users In Mind — we strongly suggest you start there first. In this second part of our series, we will define the million dollar question “What is an API?”

Another way of thinking about APIs is in the context of a wall socket. In North America and other parts of the world, the electrical sockets found in the walls of homes and businesses are essentially interfaces to a service: the electricity that’s consumed by everything from our computers and smartphones to appliances like vacuum cleaners and hair dryers. In other words, it’s important to think of the electricity as a service and of each device that uses electricity as a consumer of that service. In this scenario, instead of having its own source of power (the way a car does), the consumer is outsourcing its power requirements to the provider of a service.

While they may differ depending on where they are in the world, electrical sockets have predictable patterns of openings into which electrical plugs that match those patterns fit. The service itself also conforms to certain specifications. For example, in North America, most wall sockets deliver 120 volts of alternating current (AC) operating at 60Hz (the frequency at which the current alternates directions). This specification essentially sets an expectation on behalf of consuming devices. For example, your microwave oven has an expectation of the wall socket that it’s plugged-into and the wall-socket has an expectation of the microwave oven. Likewise, an API specifies how software components should interact with each other.

READ ALSO  Use an ESP8266 Beacon Spammer to Track Smartphone Users

So, what, if anything do electric wall sockets have to do with APIs? Well, among the many metaphors that could be used to help visualize how APIs work, the wall socket comes pretty darn close and in the next part of the series, we’ll explain why.

This is a part of our series What Are APIs and How Do They Work? In the next part (part 2), we’ll use the metaphor of the electric wall socket to explain some of the key benefits of APIs.

Article Tags:
· · ·
Article Categories:
API In Depth · In-Depth Concepts
http://techandsecurity.net

CEO & FOUNDER OF" FIVE RIVERS INCORPORATION - LEADING SOFTWARE & CYBER SECURITY DEVELOPMENT COMPANY" || CERTIFIED ETHICAL HACKER || FUTURE TRILLIONAIRE || FUTURISTIC || "DULL SCHOOL STUDENT" || (Follow this link to message me on WhatsApp: https://wa.me/13018426470)

Comments to What is an API, Exactly?

  • Valor Cialis [url=http://drugsed.com][/url] Cialis Nouveau Achat De Cytotec Purchase Female Viagraachat De Viagra

    JeaInorse February 25, 2019 1:19 am Reply
  • Order Cialis Online Cheap Buy Viagra Without Prescription [url=http://leviprix.com]levitra 60 mg[/url] Acne Generic Propecia Who Can Prescribe Dostinex Pro Cialis 20 Mg

    JeaInorse March 13, 2019 10:29 pm Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Share