Question: is an embassy and consulate the same thing

Answer: No, A diplomatic mission or foreign mission is a group of people from one state or an organisation present in another state to represent the sending state/organisation officially in the receiving state. In practice, a diplomatic mission usually denotes the resident mission, namely the embassy, which is the main office of a country's diplomatic representatives to another country, usually but not necessarily the receiving state's capital city. Consulates, on the other hand, are smaller diplomatic missions which are normally located outside the capital of the receiving state (but can be located in the capital, usually when the sending country has no embassy in the receiving state). As well as being a diplomatic mission to the country in which it is situated, it may also be a non-resident permanent mission to one or more other countries. There are thus resident and non-resident embassies.