Review main Abandoned

91740[FEATURE] Server-sent events for real-time backend updates

Benni Mack CR 0 V -1 Expert +2096 −2 updated 04/21/26, 15:13

Commit message

Introduces an SSE-based client broadcast system that pushes
real-time page tree updates to connected backend users.

Components:
- Message abstraction (Connected, Disconnected, Heartbeat, DatabaseRecord)
- DatabaseMessageQueue backed by sys_client_broadcast_messages for durable,
  multi-process message delivery (replaces volatile CacheMessageQueue)
- DataHandler hook dispatching page CRUD events
- ServerSentEventEmitter with CallableStream for PSR-7 streaming
- TypeScript SSE service with auto-reconnect and page tree handler

Event types are derived from FQCN via convertType(), e.g.
DatabaseRecordMessage for table "pages", event "created" becomes
"typo3.cms.backend.client-broadcast.message.database-record-message:pages.created"

TODO: Add functional tests
TODO: Consider adding a new With(name: 'pages.created') attribute

Review

  • Code review CR 0
  • Verified V -1
    • core-ci -1 CI

Files 30

Show 10 more files

Review log 1416

  1. Benni Mack uploaded patch set 1 11/18/25, 16:22

  2. Benni Mack wrote 11/18/25, 16:23

    Set private
  3. Benni Mack updated the commit message in patch set 2 11/18/25, 16:23

  4. Benni Mack marked it work in progress 01/05/26, 21:00

  5. Oliver Hader uploaded patch set 3 02/17/26, 10:42

  6. Oliver Hader commented on patch set 3 02/17/26, 10:43

    On it soon...
  7. Oliver Hader commented on patch set 3 02/17/26, 11:03

    ServerSentEventsController.php:76 Unresolved

    Probably not required, given that client-side event streams would reconnect automatically.

    ArrayEventQueue.php:28 Unresolved

    We might use "EventQueueTransport" to distinguish between in-memory, database, cache, redis, ...

    CacheEventQueue.php:30 Unresolved

    I'd opt for avoiding to store messages in cache. Clearing-caches should not result in users not getting notified.

    DataHandlerHook.php:28 Unresolved

    This would probably be a separate patch - emitting events next to (or a substitute) for DataHandler hooks
  8. Oliver Hader uploaded patch set 4 02/17/26, 22:12

  9. Benni Mack marked it ready for review 02/18/26, 08:45

  10. Benni Mack wrote 02/18/26, 08:45

    Unset private
  11. Benni Mack marked it work in progress 02/18/26, 08:45

  12. Oliver Hader uploaded patch set 5 02/18/26, 11:23

  13. core-ci voted on patch set 5 V -1 02/18/26, 11:41 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/96123

  14. Oliver Hader uploaded patch set 6 V -1 02/18/26, 16:14

  15. core-ci voted on patch set 6 V -1 02/18/26, 16:39 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/96169

  16. Benni Mack abandoned the change 04/21/26, 15:13

    was a nice idea