The immutability of blockchain can ensure the security and veracity of fresh food information, but in the process of data collection and processing by edge nodes and servers, a large quantity of data that must be uploaded to the blockchain network for storage will be generated quickly. This paper designs and proposes the edge cloud data collaboration technology of message queue, which uses RabbitMQ message middleware to provide cache space for the data waiting to be uploaded to the storage and achieves batch uploading by matching the throughput of the data accepted by the blockchain network, in order to address the problem that the data uploading speed does not match the data generation speed and thus causes data backlog. On the basis of an information tracing architecture that combines peripheral cloud collaboration and message queue technology, smart contracts were developed to submit authenticated data to the blockchain and IPFS. The prototype verifies the viability of the system and ensures the safety and dependability of the storage of fresh food data traceability information.