as best practice, you should never transfer a real object to an employee.
The idea is that you transfer a minimum of information to your employee, idealize the identifier so that the employee can receive all the remaining information.
since the data is stored in redis, you really need to somehow marshal your object in its order, and then disable it when the worker retrieves the data.
if your object just holds some data, you should consider passing this as a hash, because it is easily stored in redis.
phoet source share