I am trying to ingest an avro file from a gcs to pubsub. Have some layman questions.
What are the options to send a file as a message in PubSub? Like can we send the whole file as a message or only the contents of the file can be iterated and send across? If we are sending the whole file, how can the file be reconstructed in the consumer side? It would be helpful if any example code can be provided.
When do we have to serialize and deserialize the messages? What is the purpose of this serialization?
I did do my research but have this questions coming up. If someone could help understand this better. The examples i see are sending the file contents in iterations and not the whole file blob.