[GH-ISSUE #245] Use protobuf to encode messages stored in Redis #2118

Closed
opened 2026-03-15 19:14:02 +03:00 by kerem · 0 comments
Owner

Originally created by @hibiken on GitHub (Feb 15, 2021).
Original GitHub issue: https://github.com/hibiken/asynq/issues/245

Originally assigned to: @hibiken on GitHub.

Currently, all task messages are serialized in JSON format and stored in redis.
This comes with two issues:

  • JSON takes more space compared to other serialization scheme (e.g. protobuf, msgpack). We can expect less memory usage with these more compact serialization schemes.
  • Protocol Buffer has clearer forward/backward compatibility semantics as we evolve the library. We can expect that fields will be added/removed from the task messages stored in redis.
Originally created by @hibiken on GitHub (Feb 15, 2021). Original GitHub issue: https://github.com/hibiken/asynq/issues/245 Originally assigned to: @hibiken on GitHub. Currently, all task messages are serialized in JSON format and stored in redis. This comes with two issues: - JSON takes more space compared to other serialization scheme (e.g. protobuf, msgpack). We can expect less memory usage with these more compact serialization schemes. - Protocol Buffer has clearer forward/backward compatibility semantics as we evolve the library. We can expect that fields will be added/removed from the task messages stored in redis.
kerem 2026-03-15 19:14:02 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#2118
No description provided.