Hi guys,
I'm trying GRPC with flatbuffers tonight, and i don't understand one thing. My setup is simple for now:
- generating some flatbuffers table reading logs
- getting the []byte of the message
- sending those byte to Kafka
- reading those byte to send them to a client via a stream
That's where i'm confused, im getting my []byte from kafka, those represent a Flatbuffers Table, from there it's ok i can access it etc ..
BUT, the grpc interface is asking me to send() back a *flatbuffers.Builder to my client. (Send(* flatbuffers.Builder) error)
Do i have to rebuild the []byte i already have to get a builder again ? Why dont we just send an []byte or directly a typed struct ?
Or is there something i'm missing.
I'm a bit lost if someone could just hint me on what to do i would be grateful, many thanks !