Compost works by aerobic decomposition (breaks down with air) which creates heat. It needs garden materials as well as food scraps.
Wormfarming works by worms and other micro-organisms eating the food, you don’t need to add garden materials.
Bokashi composting uses fermentation to pickle food waste in an air-tight bin. Waste is broken down without bad smells or insects. It's perfect for small households where space is limited.