MongoDB Messenger Sender (Transport/MongoDbSender.php)

symfony · src/Symfony/Component/Messenger/Bridge/MongoDb/Transport/MongoDbSender.php · php · MIT
database, infra, chat, tag:transport, tag:async

Implements Symfony Messenger Sender using MongoDB, handling batch sends, delays, redelivery and stamps. Use when you need an async queue backed by MongoDB.

// Source: https://github.com/symfony/symfony | License: MIT | Copyright 2004-present Fabien Potencier
// Provided via justclaw.it.com; keep this notice with the code.
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Messenger\Bridge\MongoDb\Transport;

use MongoDB\Driver\Session;
use Symfony\Component\Messenger\Bridge\MongoDb\Stamp\MongoDbReceivedStamp;
use Symfony\Component\Messenger\Bridge\MongoDb\Stamp\MongoDbSessionStamp;
use Symfony\Component\Messenger\Envelope;
use Symfony\Component\Messenger\Exception\BatchSendFailedException;
use Symfony\Component\Messenger\Stamp\Dela

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key