Rather than relying on the timer to commit the offset, the consumer application can explicitly choose when to commit the offset using the commitSync() API. In this scenario, the setting enable.auto.commit is set to false. The commitSync() method commits the latest offset returned by the poll() method. This is unlike the automatic commit option which commits the offset returned by the last invocation of the poll() call. The pattern to use with this configuration is outlined below.