How logstash,elasticsearch and kibana communicate with each other?

How ELK communicate with each other ? I have tried to search this but can't get any answer so please respond asap as i am researching on it

They are using http and rest api.

is it the case with open source elk as well

Yes.