spiral / roadrunner-bridge

🌉 RoadRunner bridge to Spiral Framework
https://spiral.dev/docs/packages-roadrunner-bridge
MIT License
13 stars 6 forks source link

Allow to define rpc codec using env #19

Closed kafkiansky closed 2 years ago

kafkiansky commented 2 years ago

At the moment, the RPC always uses JsonCodec, which can only be overridden in the application side bootloader. This PR will allow to specify codec from environment variables using RPC_CODEC env.

rustatian commented 2 years ago

@kafkiansky Thank you for the PR 👍🏻, but we have different plans for this functionality. This part of API is not public yet.

butschster commented 2 years ago

There is a problem with the RPC codecs. At the moment RR supports only json codec. We are going to switch default codec to protobuf with an ability to fallback to json codec