← Graph

Background Job Serialization Overhead

concept 1 connections

Warning raised by Caio Almeida: moving slow work to background jobs is not always faster. If you serialize a big object into the job payload, you may spend more time serializing/deserializing than you saved, and queues can run slower than foreground. Best practice: pass numeric IDs only and reload objects inside the job; sometimes a fresh database query is faster than unserializing a large object from the job payload.

category
practice
about
Background Job Serialization Overhead concept
Caio warned that serializing big objects into jobs can be slower than foreground execution.

Provenance

Created in
Performance Panel at wroclove.rb 2024 2026-04-17 23:20
Read by
2 extractions