Bartering is based on a simple concept: Two individuals negotiate to determine the relative value of their goods and services and offer them to one another in an even exchange. It is the oldest form of commerce, dating back to at time before hard currency even existed. (Learn more about how bartering evolved, read The History of Money: From Barter To Banknotes.)
In his analysis of barter between coastal and inland villages in the Trobriand Islands, Keith Hart highlighted the difference between highly ceremonial gift exchange between community leaders, and the barter that occurs between individual households. The haggling that takes place between strangers is possible because of the larger temporary political order established by the gift exchanges of leaders. From this he concludes that barter is "an atomized interaction predicated upon the presence of society" (i.e. that social order established by gift exchange), and not typical between complete strangers.
In a small economy where individuals specialize in trades, they may find the process of setting up a centralized currency and maintaining it an unnecessary burden in order to trade. One option may be to use a commodity to exchange value between parties that want to trade goods or services and this is why gold and silver have been useful forms of currency in many cultures and times. Another option may be to use a barter system to trade.