# Introduction

Mongock uses events as a way to notify the main application in which state is the Mongock process and eventually the result of the execution. There is a big different in the approach, depending on which type of runner is used. For spring applications, Mongock takes advantage of the ApplicationEventPublisher, which is provided to Mongock at building time. On the other hand, for standalone applications, Mongock requires an explicit handler at building time.

# Type of events

Mongock provides three types of events:

Please notice that there is no scenario in which both events, success and failure, are raised together.

# Get started

Each runner's page provides you the information you need to use the events accordingly to runner's approach.