Latency
It is the time required to perform some action or to produce some result. Time is taken for a packet of data to travel to its destination. It depends on the speed of the transmission medium and the delays in the transmission
Throughput
The amount of data that can pass through the connection or network in a set period of time. It is the number of such actions executed or results produced per unit of time. It depends on transmission media, network devices, and the network protocol.