- #1
fog37
- 1,569
- 108
- TL;DR Summary
- API and sever/client communication
It is clear that a server and a client are programs communicative iwth each other using one or more protocols (HTTP, TCP, etc.)
I conceptually understand what an API is: it is like an intermediary between two programs that makes integration easy. For example, we build app A and want to connect to app B. The connection may not be easy unless app B offers an API to which to connect...
That said, does it means that in every client/software communication there is an API, another program, seating between the client and server? Or is an API just another higher level protocol? I am confused about the relation between server, client, API...
For example, could we have a server and a client communicating with each other without an intermediary API?
In a different post, I talked about writing simple client.py and server.py scripts in Python that represent a server and a client. There was no API discussion in that context....So API don't always need to be part of the server/client exchange?
Thanks!
I conceptually understand what an API is: it is like an intermediary between two programs that makes integration easy. For example, we build app A and want to connect to app B. The connection may not be easy unless app B offers an API to which to connect...
That said, does it means that in every client/software communication there is an API, another program, seating between the client and server? Or is an API just another higher level protocol? I am confused about the relation between server, client, API...
For example, could we have a server and a client communicating with each other without an intermediary API?
In a different post, I talked about writing simple client.py and server.py scripts in Python that represent a server and a client. There was no API discussion in that context....So API don't always need to be part of the server/client exchange?
Thanks!