Download Latest Version 0.16.4 source code.tar.gz (378.4 kB)
Email in envelope

Get an email when there's a new version of Colyseus

Home / 0.15.17
Name Modified Size InfoDownloads / Week
Parent folder
0.15.17 source code.tar.gz 2024-04-26 340.2 kB
0.15.17 source code.zip 2024-04-26 403.8 kB
README.md 2024-04-26 1.6 kB
Totals: 3 Items   745.5 kB 0

Maintenance release

Improved how “stale” rooms are cleared when using multiple processes:

The Problem

On previous versions, whenever a new process starts up, all existing rooms would be "health-checked", and removed in cause of failure - one by one. Depending on the number of rooms available, this could cause stress on Redis, and end up clearing rooms that shouldn't be cleared.

The Solution

Now, rather than "health-checking" all the rooms, each process is "health-checked" instead. Then, in case of failure, rooms are cleared from the cache in batches, instead of one-by-one.

Also, now whenever a user tries to “join or create” and a “stale” room is found, the remote process is immediately health-checked and the “join or create” is re-tried. When this happens, the request will take more time to complete, but it won’t result in an error to join. (previously, the {roomId} is already full error used to appear in such scenario!)

Internal changes

Source: README.md, updated 2024-04-26