Repository navigation
Emits no longer lock the whole database
emit()locks only its channel. The emit script now declaresallow-key-locking, so Upstash holds a lock on the channel's key while the script runs instead of the database-wide lock. Other commands on your database no longer wait for an emit, and Upstash can run emits to different channels in parallel, up to your plan's parallelism.- Order is unchanged. Emits to one channel still run one after another, so delivery order keeps matching stream order.
Upgrading
- No code changes. Events are stored and published exactly as in 1.2.0, and instances on 1.2.0 and 1.2.1 can run side by side.
emit()needs an Upstash database. Stock Redis, for example behind SRH, rejects the script withERR Unexpected flag in script shebang: allow-key-locking.
Full change: c867c14