Hive Tables Partitions and Bucketing

when should we use Hive partitioning and Bucketing
which is best and why?

Anyone from real time can you please answer this.