# How It Works

Laravel Haystack works by storing your jobs on the database and then queuing the job onto the desired connection. The Flowchart below represents the flow Haystack follows.

<figure><img src="https://3661954063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTer8PeMHAsUZ2b5ahmh7%2Fuploads%2F4Q1epvKNJ6UMlnDIlzE3%2FLaravel%20Haystack%20Flow.png?alt=media&#x26;token=5bcdf9f1-efb2-475a-8b5e-b258f2e5a4f6" alt=""><figcaption></figcaption></figure>
