You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have starte working on a new major version. One of my goals is to simplify a lot. One thing I am taking into consideration is to remove support for passing the payload by argument. If I proceed proceed with that idea, I would like to also reject that request. This is due to the fact that a message body can be arbitrary binary data. In order to place it into a JSON data structure, the body would have to be encoded with the consumer and decoded within the worker script. This reduces the throughput this consumer can handle.
So the options are:
Read from two file descriptors and run json decode on one of them. (less memory usage, less computing required)
Read from one file descriptor and run json decode. Extract one field and decode it again (e.g base64). (more computing and memory required)
@estahn What would be your argument to have both attributes and body within the same data structure?
It would be great to just read a JSON from
STDIN
instead of reading from different file descriptors.The text was updated successfully, but these errors were encountered: