Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Dsql Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Database consolidation (build vs. buy): Aurora DSQL + this package lets a Laravel product run cache, queue, and session on the database itself, potentially removing a managed Redis/ElastiCache tier from the architecture. That is a cost and operational-surface decision this package directly enables — or blocks, if it isn't reliable enough.
  • Serverless Laravel roadmap: if the product is heading toward Laravel on AWS Lambda (Bref) with a scale-to-zero, multi-region database, this is the integration layer that makes the standard Laravel drivers usable. It belongs in the "spike / pilot" bucket of the roadmap, not the "assume it works" bucket.
  • Rate limiting and abuse protection: Laravel's rate limiter is built on Cache::increment. The 1.0.2 fix (re-running cache increments after a write conflict) is the difference between accurate quotas and silently lost counter updates under concurrency. That feeds directly into decisions about per-tenant quotas, API throttling, and paid-tier enforcement.
  • Background job UX: the batch fix (recounting jobs after a conflict) protects Bus::batch() progress, then/catch/finally callbacks, and any customer-facing "your export is 40% done" surface. Broken batch state is a visible product defect, not an infra detail.
  • Feature feasibility for hot-row workloads: DSQL uses optimistic concurrency control, so any design with a single hot counter (global view counts, shared inventory, leaderboards) will collide and retry. This package now retries these paths rather than dropping them, but it also tells you where to architect around the database.
  • Vendor concentration: adopting this increases coupling to Aurora DSQL specifically. That is a portfolio-level decision worth naming explicitly rather than discovering later.

When to Consider This Package

Consider adopting when:

  • You are running Laravel on AWS Lambda via Bref and want Aurora DSQL as the primary datastore.
  • You want to eliminate Redis for cache, queues, and sessions and accept the database as the backing store.
  • Your write profile has moderate contention — retries on conflict are the expected path, not the exception.
  • You can pin to a specific patch version and re-test on upgrades; 1.0.x is young and this release shows correctness bugs were still being found in core paths.
  • Your schema avoids what DSQL restricts (for example, no foreign key constraints), so the Laravel migration story is already clean.
  • You need multi-region, strongly consistent reads/writes and are willing to trade ecosystem maturity for it.

Look elsewhere when:

  • You are on RDS, Aurora Serverless v2, PlanetScale, or plain Postgres/MySQL — this package solves a problem you don't have.
  • You already run Redis or ElastiCache and it isn't a pain point; the migration risk outweighs the consolidation win.
  • Your workload is dominated by high-contention counters or queue throughput that would generate constant OCC retries.
  • You need mature, well-trodden operational tooling, deep community answers, and predictable behavior under load — the safe answer today is still the conventional stack.
  • You are on Laravel Octane/Horizon with expectations of queue semantics this driver hasn't had years to prove.
  • You need a guarantee of backward compatibility; treat 1.0.x as pre-stable in practice.

How to Pitch It (Stakeholders)

For executives: This is the glue that lets a Laravel product run on Aurora DSQL — AWS's serverless, multi-region SQL database — without a separate Redis cluster. The upside is fewer moving parts, a scale-to-zero cost profile, and one less piece of infrastructure to operate and pay for. The caveat is maturity: version 1.0.2 shipped two correctness fixes, one for rate-limit counters and one for background job batches. Both were the kind of bugs that show up as wrong quota enforcement or stuck progress indicators under load, and both are now fixed. Read that as an actively maintained project that is still hardening, not a finished product. Recommendation: worth a scoped pilot, not a platform-wide commitment yet.

For engineering: Drop-in Laravel cache, queue, and session drivers backed by DSQL, with retry handling around the database's optimistic concurrency conflicts. 1.0.2 addresses two real gaps: cache increments were not re-executed after a conflict (affecting Cache::increment and therefore rate limiters), and batch job counts were not reconciled after a conflict (affecting Bus::batch progress and completion callbacks). Pin the version, add integration tests around increment-under-contention and batch completion with concurrent workers, and load-test any hot-key counter before shipping it to production.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console