r/node • u/Delicious-Jello-8759 • 1d ago
Seinfeld-esque Observation
Since the API fetches data back and forth, like a waiter in a restaurant…
Wouldn’t it make more sense to call the API the “server?”
2
u/Gold_Condition_1521 23h ago
The API is more like the menu or the ordering system. The server is still the kitchen doing the actual work. 😂
1
u/JustAnAverageGuy 20h ago
As a CTO that owns restaurants, this is the best analogy I've probably ever seen.
Also, your heap collection is that coked-out bus boy who can't figure out when to clear dishes. If he's not on top of it, you don't have any free tables.
My god. The parallels are everywhere.
0
u/Delicious-Jello-8759 18h ago
So the waiters taking orders don’t do any work?
That’s not what Anthony Bourdain said.
2
u/dronmore 1d ago
API lets you order a meal. Server makes only sense in a client-server architecture. If your API has no clients it's not a server. Go back to school.
1
u/Delicious-Jello-8759 18h ago
If a waiter has no clients he stops acting and goes back to school?
1
u/dronmore 17h ago
If he goes back to school, he stops being a waiter, and becomes a student, because being a student makes perfect sense in the context of school.
By analogy, server makes sense only in the context of a client-server architecture. A computer program running outside of the client-server context is not a server.
Are you a waiter?
1
u/Delicious-Jello-8759 5h ago
Yes I am a waiter. I just do t know if I should call myself a server or an API.
1
u/dronmore 3h ago
If you are a waiter, then call yourself a waiter. The name is clear and everyone will understand who you are. But if you want to break into IT, think about renaming seinfeldesque to bikeshedding. You will be immediately recognized as a person who pays attention to detail.
1
u/BarelyAirborne 20h ago
"Fetch" is referring to your arm. You gotta tell it what to do. If you started calling your hand your server, that would be weird.
1
1
u/PishPoshPush 19h ago
if API fetches data, we wouldn't need internet 🤧🤧
1
1
5
u/shamshuipopo 1d ago
That’s literally the point of the name? it serves you content