Explore
Module 1 · Part 1 of 12 · Free preview

Part 1

Chapter 1: The Silent Handshake--–- Every time you tap a ride-sharing app to request a car, check the weather on your phone, or log into a website using your Google account, a silent handshake occurs between software systems that may be thousands of miles apart. No humans are involved. No files are exchanged. Yet within milliseconds, these systems agree on who you are, what you want, and what response to send back. This handshake is so seamless, so invisible, that most users never notice it. But for developers, understanding this handshake is the difference between building software that integrates gracefully into the modern world and building isolated islands of functionality that no other system can talk to.The handshake is, of course, an API call.

API stands for Application Programming Interface, but that sterile definition conceals the dynamic, living nature of what APIs actually do. An API is a contract. It is a promise that if you send a message in a specific format to a specific address, you will receive a predictable response. This contract enables the modular, interconnected software ecosystem we take for granted. When you order food delivery, the restaurant’s system, the delivery tracking system, the payment processor, and your mobile app are all exchanging API calls. None of them share a database. None of them were written by the same company. Some of them may not even know the others exist.

Yet they cooperate flawlessly because each one honors its API contracts.This chapter is the foundation of everything that follows in this book. You will learn why APIs have become the default architecture for modern software, how the HTTP protocol carries API traffic, what makes an API truly RESTful (and what parts of REST the industry has quietly abandoned), how to choose between REST, GraphQL, and gRPC for different scenarios, and how to write production-ready HTTP clients using modern Java’s built-in tools. By the time you finish this chapter, you will see the silent handshake everywhere you look—and you will be ready to start writing the code that performs it.The Collapse of the MonolithIn the 1990s and early 2000s, most enterprise software was built as a single, monolithic application.

Keep reading — free

Sign in with your SamEnrico account to read the whole of lesson 1.

Sign in