Depends on where you are, really. In certain countries, the two are almost the same. For instance, in France, a café serves alcohol, coffee and food, usually light food. In England, a pub usually does that. So, nowadays, the two are more or less synonymous.