bref/laravel-dsql
Laravel database driver and integration for Amazon Aurora DSQL, built to run serverless Laravel applications on AWS Lambda with Bref. Simplifies configuring DSQL connections for distributed SQL workloads.
composer require brefphp/laravel-dsql and confirm the runtime has pdo_pgsql plus AWS credentials allowed to connect to Aurora DSQL (dsql:DbConnect).dsql connection in config/database.php and set DB_CONNECTION=dsql. The package registers the DSQL driver and handles IAM auth token generation, so avoid hard-coding passwords.php artisan migrate against DSQL, create a small UUID-keyed model, and exercise a write inside DB::transaction(). Confirm a retry path by running two concurrent updates against the same row and observing the transaction retry rather than a failed request.Cache::increment. As of 1.0.2, increments are re-run after a conflict, so counters are not silently lost, but still avoid ultra-hot single keys.Bus::batch() progress should remain accurate under retries.Str::uuid()) or DSQL-supported UUID defaults. Do not design around Postgres sequences/SERIAL.SELECT ... FOR UPDATE, no advisory locks, no long-held locks. Model relationships in application code and use optimistic concurrency.40001. Log retries and monitor their frequency; a retry storm usually means hot rows or overly broad transactions.SERIAL, SELECT FOR UPDATE, advisory locks, or LOCK TABLE. Migrations copied from standard Postgres often need rewriting.40001 retries. If a value is missing after a conflict, check whether the operation is one of the patched paths in 1.0.2 or a custom side effect outside the retried callback.How can I help you explore Laravel packages today?