roadrunner icon indicating copy to clipboard operation
roadrunner copied to clipboard

[💡 FEATURE REQUEST]: Custom encoder (Go) and decoder (PHP) for the http plugin data

Open rustatian opened this issue 5 months ago • 0 comments

Plugin

HTTP

I have an idea!

ATM, we're using protobuf encoder/decoder in Go/PHP to encode messages from the RoadRunner (not send, only encode). This approach suggests using the protobuf PHP extension to speed up parsing. This was done because the previous encoder (JSON) does not support binary payloads (have to use base64 for example to encode/decode). I propose to write our own custom encoder/decoder for the transmitted data, which won't require any installations from the user side, preserving the same performance as much as possible, and will support any types of data.

This will require updates from both sides, PHP and Go.

rustatian avatar May 01 '25 09:05 rustatian